Grizzley g
New member
Let's suppose I have $date = date("m-d");, and my form has a date input field in which I am making it readonly="yes" with the value "echo $date";.
Now when the user hits "submit" I want that date (or time) to be entered when the submit button was hit and not when the page was loaded. For instance, if a person sits and loads a page and starts entering the information at 11:59 PM on the 31st of January, and completes and hits submit on the 1st of Feb at 12:05 PM, I want the mysql database to record 1st of feb instead of 31st of jan.
Is there any possibly way to do it?
The form action is PHP_SELF, if that has any importance.
Thanks!
Now when the user hits "submit" I want that date (or time) to be entered when the submit button was hit and not when the page was loaded. For instance, if a person sits and loads a page and starts entering the information at 11:59 PM on the 31st of January, and completes and hits submit on the 1st of Feb at 12:05 PM, I want the mysql database to record 1st of feb instead of 31st of jan.
Is there any possibly way to do it?
The form action is PHP_SELF, if that has any importance.
Thanks!