Skip to content

Tag: html

Can I refer to a DIV id or class in a PHP file from a HTML page?

I am trying to add my own custom contact form to a Blogger website project. I’ve got the contact form HTML code in the Blogger template and its own PHP file running on a server, which link I point to the form tag action. It sends email and both platforms seem to communicate well. Among many improvements…

How to embed Google Drive images into a webpage?

I have a website that I am designing and I want to use a folder in a google drive to store the images. The issue is that I can’t seem to find how to get the URL for these images. The actual use of this needs to be that anyone with permissions for the google folder can drop in an

php Setting background image randomly from folder

I am trying to randomly set the background image of a webpage from a folder via PHP. I have the following code: Note: the printing of the files is just to ensure I reach that point in code and to see what the files are called. I found a similar question here: Random Background Image PHP but when I used

Div text won’t show up as it should

I have a problem with my div, when I’m trying to put text inside a div using <?php echo $uin->text; ?> it doesn’t show up like I want it to. So if it worked it should have looked like this: but for me it always shows up like this Here is the codes I’ve tried: So I don’t know w…

DOMPDF Chinese Character

I have problem that when I download the PDF it will download the font together in the PDF which will create a very big size of PDF (about 10mb+). Answer You’ll want to enable font subsetting. In dompdf 0.6.2 or earlier set the DOMPDF_ENABLE_FONTSUBSETTING configuration constant to true. Configuration co…

how can i make PHP to display pictures

I need help to display all my pictures in my folder in a row, not over each other. Answer You should use css classes and styles. Then include your stylesheet in html head and finally style your images in that stylesheet.css All of this is the most basic html and css stuff. Please consider reading some tutoria…

How does a PHP page retrieve form data?

I am new to PHP and am taking the PHP course on W3Schools. In the form handling part of the course, I read that there are two methods of handling form data: POST and GET. I understand that depending on the method used, a superglobal variable is created which stores the data as key-value pairs. And at the dest…