You are here: Re: Can a form change session variables? « PHP Programming Language « IT news, forums, messages
Re: Can a form change session variables?

Posted by radmission05@gmail.com on 01/13/08 08:28

On Jan 13, 12:06 am, "Peter Pei" <yan...@telus.com> wrote:
> you missed the point, they share value, change one, the other one changed to
> the same value. you obviously didn't understand this side of php


> "Sure you can. The two have no relationship to each other.

> $_SESSION['foo'] is an element of the $_SESSION array with the index of
'foo'."


I agree with jerry stuckle


$_SESSION is different from $foo;
$_SESSION is different from $_GET['foo'];
$_GET['foo'] is the same with $foo (if register_global is on, if not
they are different.)

the only relationship with session with $foo or $_GET['foo'], they are
both variables in php.
session used to store variables like $foo, $_GET['foo'] on current
session. thats why we have
session_register(); to register variable on session. coz they are
different.

if they are not different, they will not provide session_register...

 

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

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