Hi, Heres the code (very simple stuff) but not working: if(session_is_registered('my_email')){} else{ do_session_crap(); }
function do_session_crap() { if(isset($id[0])) {$p1=$id[0]; echo $p1; $_SESSION['p1'] = $p1; } if(isset($id[1])) {$p2=$id[1]; echo $p2; $_SESSION['p2'] = $p2; } if(isset($id[2])) {$p3=$id[2]; $_SESSION['p3'] = $p3; } if(isset($id[3])) {$p4=$id[3]; $_SESSION['p4'] = $p4; } if(isset($id[4])) {$p5=$id[4]; $_SESSION['p5'] = $p5; } else {echo "not working";} // header("Location: my.login.php"); exit; } it always gives me "not working" Any idea why? -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php