--- Stuart Felenstein <stuart4m@xxxxxxxxx> wrote: > 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. This is most likely due to your malformed Location header. It requires an absolute URL, and some browsers (notably several versions of IE, but there may be others) do not send the proper Cookie header when requesting the new URL if you use a relative one. So, the first thing to try is using a proper Location header: header('Location: http://example.org/success.php'); Hope that helps. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly HTTP Developer's Handbook - Sams Coming December 2004 http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php