You are here: Re: Help with register_globals on « All PHP « IT news, forums, messages
Re: Help with register_globals on

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация