|
|
Posted by J.O. Aho on 11/12/06 06:44
affiliateian@gmail.com wrote:
> J.O. Aho wrote:
>> If it's supplied the same way as the other values from the form, then it
>> should most likely be $date=$_POST['date'], but if it comes from a session or
>> cookie, then you need to use the $_SESSION['date'] or $_COOKIE['date'].
>
> Previously, the $date variable was being pulled into an email that was
> below the database inserts so it was populating the email with the
> correct $date. But since we deleted the database function, it is not
> showing. Do we have to push it from the form or is there a function to
> automatically pull the date from the server during the script run?
>
Is the date the current date?
if yes,
$date=date('Y-m-d');
For more info, see http://www.php.net/manual/en/function.date.php
//Aho
Navigation:
[Reply to this message]
|