Re: Date Question

From: Date: Thu, 04 Apr 2002 04:18:07 +0000
Subject: Re: Date Question
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-18183@lists.php.net to get a copy of this message
One way you can do that is create a local variable and have that variable referenced in your form in either a hidden field or a text field. EXAMPLE $date = date("l F d, Y") (outputted that would be say Thursday April 4, 2002) then your field would look something like this depending how you write the PHP <input type="hidden or text" name="date" value="<?php echo("$date"); ?>"> Hope this helps you out Jennifer Downey wrote: > > Hi all, > > If I have a feild called 'date' and the type is date when a form is > submitted isn't it suppose to automatically enter the date or do I need to > somehow enter it through the form? > > The reason I ask is that I have another form with a date type and no > reference to it in the form and it is always entered. With this new form the > date is not entered into the db. > > Any ideas why? > > TIA > Jennifer > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002

« previous php.db (#18183) next »