Re: POST arrays?

From: Date: Thu, 20 Apr 2006 12:18:45 +0000
Subject: Re: POST arrays?
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-234363@lists.php.net to get a copy of this message
OK. Must try that. BTW theres something odd about my serialize. I got it return something but not quite what was expected :) Here's the result "a:3:{i:0;s:1:" -W "Stut" <stuttle@gmail.com> kirjoitti viestissä:44477834.2020700@gmail.com... > 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 (#234363) next »