Re: header("Location:blah...") - passing variables

From: Date: Tue, 04 Dec 2001 19:17:45 +0000
Subject: Re: header("Location:blah...") - passing variables
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-76578@lists.php.net to get a copy of this message
I'd recommend urlencoding those variables if you're going to do it that way, otherwise you may get some non-sense characters resulting in a bad URL. J Jim wrote: > > There are many different ways to do this ... > > 1. Have the same PHP script that validates generate the login page. > This way the script always has the correct data and you don't need to > pass anything. > > 2. Header("Location: login.php?err=$err&user=$user&pass=$pass"); > This will work, but the bad password will be visible in the query string. > > 3. Start a session at the login page and register the variables you > need to use on the login page. > > Jim > >

« previous php.general (#76578) next »