|PHP Developers Network
|Redirect multiple users using session
|Page 1 of 1|
|Author:||msnes [ Sun Jul 15, 2012 12:30 pm ]|
|Post subject:||Redirect multiple users using session|
I am having problems with this code. It worked until I made it into a session, now I dont know how to change it to make it work.
//let's start the session
//now, let's register our session variables
//finally, let's store our posted values in the session variables
$_SESSION['name'] = $_POST['name'];
$users['admin'] = array('password' => 'admin', 'redirect' => 'admin.php');
$users[$username] = array('password' => $password, 'redirect' => 'form3.php');
Can you help me find out why this code wont redirect me to the right pages. Right now I get a blank screen.
|Author:||requinix [ Sun Jul 15, 2012 4:23 pm ]|
|Post subject:||Re: Redirect multiple users using session|
Besides the obvious syntax error, there's nothing in there that actually redirects.
Did you post all of the code? You need to post all of the code.
|Page 1 of 1||All times are UTC - 5 hours|
|Powered by phpBB® Forum Software © phpBB Group