Forum Moderators: coopster

Message Too Old, No Replies

Making a date default using PHP

         

Esqulax

2:58 pm on Jan 17, 2008 (gmt 0)

10+ Year Member



Hiya,
Im making a date input thingy with html (Theres a post about it in the HTML forum)
and im trying to make the default value of a box be todays date.
Ive tried popping in a date function but it doesnt like it

Date:<input type="text" name="day" size="2" value="<?php date("d");?>">/
<input type="text" name="month" size="2">/
<input type="text" name="year" size="2">

any ideas?

Esqulax

3:00 pm on Jan 17, 2008 (gmt 0)

10+ Year Member



scratch that, just added echo.. silly me :)