jadynlonely Posted August 20, 2010 Share Posted August 20, 2010 I'm very new to coding, and most of what I get is from tutorials. I have built a survey form that when submitted, the results are sent to me in an email. I would like to place a timestamp in the resulting email to tell me when they submitted in text.(the email will have it's own date, but would like the time to be the post data) Is this possible? In the land of coding, I bet it is. Would list code be placed in both the HTML and PHP docs or just one, and where in the doc? Any help is appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/211305-help-coding-web-form-and-php-timestamp/ Share on other sites More sharing options...
sKunKbad Posted August 20, 2010 Share Posted August 20, 2010 All you have to do is use the php date() function to get the current time, formatted whatever way you like... See the documentation at php.net. There are many examples. Quote Link to comment https://forums.phpfreaks.com/topic/211305-help-coding-web-form-and-php-timestamp/#findComment-1101767 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.