note 26307 added to function.date
| From: | dustin at davisvillage dot NO_SPAM dot com | Date: | Fri, 25 Oct 2002 19:11:54 +0000 |
| Subject: | note 26307 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38565@lists.php.net to get a copy of this message | ||
I accidentally came across an easy way to insert the date into a field automatically using the date
function (I was initially going to do it with javascript)
<input type="text" name="date" value="<? echo date("m/d/Y",
$ANYVALUE) ?>">
It is great because while using the form to either edit or enter a new record I can replace
$ANYVALUE with the date I'm going to be editing (if that makes sense...)
--
http://www.php.net/manual/en/function.date.php
http://master.php.net/manage/user-notes.php?action=edit+26307
http://master.php.net/manage/user-notes.php?action=delete+26307
http://master.php.net/manage/user-notes.php?action=reject+26307