-
PHP in HTML, want to add DATE/TIME
Thanks for your help.
-
PHP in HTML, want to add DATE/TIME
How would I change the color of the font for the time/date displayed? I found this code on another forum and used it in my code, but its not having any effect: echo <font color="#FFF"> . date('d-m-Y - H:ia') . </font>;
-
Positioning PHP content
It's cool figured it out, cheers.
-
Positioning PHP content
Thanks, makes sense. I've inserted a php statement for date/time in a div classed as time, I've went into my css file. I uploaded my php file and css file to my web domain, but it doesn't seem the css file is being read. Any ideas why?
-
Positioning PHP content
Echo displays some sort of output, but how do you move that output around the page? CSS?
-
PHP in HTML, want to add DATE/TIME
This is what I came to understand late on, that any html file that contains PHP, even if very minimal has to have the .php extention. Slowly slowly learning something new about php, which I'm pleased about. echo date(); that doesn't output the date/time, is there anything else I have to add? My bad, I just realised "d-m-Y", and viola, now to display the time, what do I need to add? EDIT: Just done it, for reference to anyone that needs to know this: <?php $date = date("format", $timestamp); echo date('d-m-Y - H:ia'); ?>
-
PHP in HTML, want to add DATE/TIME
I've tried to echo hello; but nothing comes up, I've even uploaded it to my website domain to see if there is a difference, but nothing.
-
PHP in HTML, want to add DATE/TIME
Ok, so how do I change the color of the time/date? My website background is black, is that why I can't see the time and date? I've used echo date(); but I can't see it in my webpage, I'm not actually sure if the php tag is recognised, because the writing of the tag does not change to red.
-
PHP in HTML, want to add DATE/TIME
I want to display the date and time in my html page, I have inserted <?php echo time(); ?>, but the writing stays blue, same as the html coding, does that mean the php tag is ignored?
-
Bold
Tried it, can't get it to work. I will just leave it as it is, as long as the information is sent to email I am happy.
-
Bold
How do I get this writing to be bold: $sent = mail ($to, $subject,"Name: $fullname\r\n\r\nCompany: $company\r\n\r\nEmail: $email\r\n\r\nTel No: $telno\r\n\r\nEnquiry: $enquiry", $headers);
-
Sending form data to an email address
Ok, I absolutely baffled, its now working. I don't know what exactly made it start working, but it has. Thank you all for all your help, you dedicated time to my problem, I appreciate that! Thank you.
-
Sending form data to an email address
Are you seeing Contact Us as the subject of an email that you receive? YES. Are you filling in and submitting the form on your online page from your own website and domain (not submitting from a local file on your computer? Submitting from own website uploaded FTP. Does your host support PHP (if it sends an empty email, it must do). Believe so, yes it does send the email. Does your host send emails via php (it seems that it does)? Yes
-
Sending form data to an email address
I've echo'd $fullname Tried: echo $fullname; output = nothing echo '$fullname'; output = $fullname echo "$fullname"; output nothing. Nothing seems to be passed from the user input for fullname and its the same with the rest.
-
Sending form data to an email address
Any ideas, anyone? Why is my user data not appearing in the body of my email?