PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Nov 26, 2014 3:09 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Jun 26, 2012 5:57 am 
Offline
Forum Contributor

Joined: Tue Jan 10, 2012 7:05 am
Posts: 359
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


Top
 Profile  
 
PostPosted: Tue Jun 26, 2012 6:04 am 
Offline
Forum Contributor

Joined: Tue Jan 10, 2012 7:05 am
Posts: 359
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?


Top
 Profile  
 
PostPosted: Tue Jun 26, 2012 6:21 am 
Offline
Forum Contributor

Joined: Tue Jan 10, 2012 7:05 am
Posts: 359
<input type="hidden" name="updatedDate" value="<?php echo date("d-M-y"); ?>" />

thats seems to have done it


Top
 Profile  
 
PostPosted: Tue Jun 26, 2012 8:24 am 
Offline
Forum Contributor
User avatar

Joined: Wed Sep 02, 2009 8:51 am
Posts: 125
if you're storing the information in a database, just add a field with an automatic timestamp, will keep the form cleaner


Top
 Profile  
 
PostPosted: Wed Jun 27, 2012 4:17 am 
Offline
Forum Contributor

Joined: Tue Jan 10, 2012 7:05 am
Posts: 359
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?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group