Validation and session variables

From: Date: Tue, 26 Oct 2004 23:01:11 +0000
Subject: Validation and session variables
Groups: php.general 
Request: Send a blank email to php-general+get-200388@lists.php.net to get a copy of this message
Having some odd behaviour. First , let me mention this is a multi page form using session variables. (This might be important) So I am doing a page by page validation, and have tried putting the code before session_start or after. Either way my session variables are getting lost. Now in order to do my validation on the same page, I have set form action to nothing action="" And upon sucess of happy validation added this code: if ($_SERVER["REQUEST_METHOD"] == "POST") { $url = "success.php"; Header("Location: $url"); } ?> The page progresses correctly but it seems the variables are gone. Sound like it makes sense ? Any suggestions or ideas. Thank you, Stuart

« previous php.general (#200388) next »