You are here: Re: stange behavior of $_SESSION « PHP Language « IT news, forums, messages
Re: stange behavior of $_SESSION

Posted by Janwillem Borleffs on 01/07/08 10:52

Peter Pei schreef:
> The fact is that $_SESSION[] = "a"; $_SESSION[]="b"; works - works on
> the initial page when it is set up.
>

This works on the initial page, because all you're doing is updating an
array. It doesn't work on the second page because PHP can't write it to
the session file due to its format.

> Who told you that you cannot do $_POST[] = "abc"? It clearly works.

It only works under the same conditions applying to $_SESSION, but you
cannot assign data from a form this way.


JW

 

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

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