Re: Adding Time

From: Date: Sat, 27 Mar 2010 21:17:27 +0000
Subject: Re: Adding Time
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-303541@lists.php.net to get a copy of this message
It is a multi page form with all information being writting to the database via the $_SESSION's. Gary "Yousif Masoud" <yousif.masoud@gmail.com> wrote in message news:k2qbffe24ad1003271414za1377a2dsb0e4a2d23d4119c9@mail.gmail.com... > On Sat, Mar 27, 2010 at 8:41 PM, Gary <gwpaul@ptd.net> wrote: > >> [...] >> <?php >> >> >> $pay_date=($_SESSION['pay_date']); >> >> >> $loan_length=($_SESSION['loan_length']); >> >> $orgDate=($_SESSION['pay_date']); >> $mth=($_SESSION['loan_length']); >> function add_date($orgDate,$mth){ >> $cd = strtotime($orgDate); >> $end_date = date('Y-m-d', >> >> mktime(0,0,0,date('m',$cd)+$mth,date('d',$cd),date('Y',$cd))); >> return $end_date; >> } >> echo $orgDate ."<br />"; >> echo $end_date ."<br />"; >> echo $pay_date ."<br />"; >> echo $loan_length; >> ?> > > > You access form element values via the $_POST superglobal, why are you > using > $_SESSION? > > http://php.net/manual/en/reserved.variables.post.php > > > > __________ Information from ESET Smart Security, version of virus > signature database 4978 (20100326) __________ > > The message was checked by ESET Smart Security. > > http://www.eset.com > > __________ Information from ESET Smart Security, version of virus signature database 4978 (20100326) __________ The message was checked by ESET Smart Security. http://www.eset.com

« previous php.general (#303541) next »