Skip to content

Tag: html

Using time zones in a PHP web application

I’ve been looking around for a few hours now about what’s the best way to use timezones in a PHP/MySQL web application, finding a definitive answer is hard. From what I’ve learnt so far it is best to store everyones stuff in the database in UTC (correct me if I am wrong). When a user registe…

How can I get a PHP value from an HTML form?

I have an HTML form as follows: I want that the user of this form enters data in the input box. Then I would like this data to be the value of a PHP string – e.g. $username = “MY_NAME”; where MY_NAME is the value of the HTML form entered by the user. If the input by the user in

Send HTML in email via PHP

How can I send an HTML-formatted email with pictures using PHP? I want to have a page with some settings and HTML output which is sent via email to an address. What should I do? The main problem is to attach files. How can I do that? Answer It is pretty simple. Leave the images on the server and send

what is the difference of absolute path in html and php?

I am developing a website on php, I have installed wamp on my personal computer and my website files are in the www folder of wamp. now considering www as my root folder i have a template folder in the root folder and header.inc.html file in the template folder. when I try to include this header.inc.html file…