Page 1 of 1

show date for when form updated

Posted: Tue Jun 26, 2012 5:57 am
by jonnyfortis
i have a form that when it is submitted it show in the back end of the system the date that it was submitted. is there some php that i can add to the form to show date the form was submitted then echo the results in the back end admin page?


thanks in advance

Re: show date for when form updated

Posted: Tue Jun 26, 2012 6:04 am
by jonnyfortis
would i need to add an hidden value on the form to send to the db the call the value to the page i need it displayed on?

Re: show date for when form updated

Posted: Tue Jun 26, 2012 6:21 am
by jonnyfortis
<input type="hidden" name="updatedDate" value="<?php echo date("d-M-y"); ?>" />

thats seems to have done it

Re: show date for when form updated

Posted: Tue Jun 26, 2012 8:24 am
by Grizzzzzzzzzz
if you're storing the information in a database, just add a field with an automatic timestamp, will keep the form cleaner

Re: show date for when form updated

Posted: Wed Jun 27, 2012 4:17 am
by jonnyfortis
Grizzzzzzzzzz wrote:if you're storing the information in a database, just add a field with an automatic timestamp, will keep the form cleaner

what dont do it how have done it?