Re: POST arrays?

From: Date: Thu, 20 Apr 2006 12:01:56 +0000
Subject: Re: POST arrays?
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-234361@lists.php.net to get a copy of this message
William Stokes wrote:
"Why do you want to post it to itself? Why not use a session instead? " -I dont know. Never tried "session" "It's a lot more efficient." -OK. Is it more complicated to write?
"session" is great, gets me high every time. See your local supplier or go to http://php.net/session to order yours. In summary... 1) Call session_start(); at the top, that is to say the very first line, of every script 2) Use the $_SESSION superglobal at will (no pun intended) 3) PHP takes care of storing the contents of $_SESSION between pages 4) Remember that the session will expire after a period of inactivity or when the user closes their browser (subject to the configuration in php.ini - the URL above explains all that) 5) There is no step 5! -Stut

« previous php.general (#234361) next »