Reply to Re: Can a form change session variables?

Your name:

Reply:


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

> 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, then they will not provide
session_register...

[Back to original 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

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