Re: Re: $POST and $_SESSION

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2012-03-17 at 12:52 -0400, Al wrote:

> 
> On 3/15/2012 11:04 AM, Tedd Sperling wrote:
> > $first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] : null;
> > $first_name = isset($_POST['first_name']) ? $_POST['first_name'] : $first_name;
> > $_SESSION['first_name'] = $first_name;
> 
> 
> $_SESSION['first_name'] = (isset($_POST['first_name']))? 
> $_POST['first_name']:(isset($_SESSION['first_name']))? $_SESSION['first_name']:null;
> 


Isn't that basically the same as what I wrote?

$first_name =
(isset($_POST['first_name']))?$_POST['first_name']:( isset($_SESSION['first_name'])?$_SESSION['firstname']:null);

-- 
Thanks,
Ash
http://www.ashleysheridan.co.uk



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux