Jump to content

PHP Form Date


TM3909

Recommended Posts

I'm creating a form that will post to a database and need to post a date with it. I tried to set the database to do this automatically via PHPMyAdmin, where it would automatically time stamp upon update, but I was slapped with MySQL error 1294.

 

Heres the code:

[input id="post_date" name="post_date" value="currentdate" type="text" /] 

I need to enter something in the value so the server posts the current date/time.

Link to comment
https://forums.phpfreaks.com/topic/105022-php-form-date/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.