Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Auto date

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Auto date

Postby wmdrumaizi » Sun Mar 30, 2003 8:48 pm

8O
Hi everybody, could anyone tell me how to insert current date automatically into the database from a registration form.
User avatar
wmdrumaizi
New php-forum User
New php-forum User
 
Posts: 40
Joined: Thu Jan 23, 2003 5:15 pm
Location: Malaysia

Postby Oleg Butuzov » Sun Mar 30, 2003 11:50 pm

$date=date("Y-m-d");
echo "<input type=text value=$date name=date>";
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.