This topic is locked

Auto date

3/20/2009 4:07:14 PM
PHPRunner General questions
W
wilsonhaze author

Please how do i make a date field add automatically when a record is added, so the user doesn't need to add it manually enter the date.

Thanks

D
danaci 3/20/2009

after add event is
your date field example ddate
$values["ddate"]=date("j, n, Y");

A
ashipley 3/21/2009

after add event is

your date field example ddate
$values["ddate"]=date("j, n, Y");


------------------------------------------------

I do some5thing similar to this when I have someone fill out a new for,m, One of the fields is the date field. I have it set as a short date on add, read only, with default value set to NOW(). When the person calls up a blank form to fill out, they see today's date. but vannot modify it.