How to format Login.php to redirect to user's profile page

abozhab

New Member
I have created a login page that, after the user has authenticated should re-direct to his profile page. However, this is not the case.This is the piece of the page that should do that:\[code\]// if login is ok then we add a cookie $_POST['username'] = stripslashes($_POST['username']); $hour = time() + 3600; setcookie(ID_startHere, $_POST['username'], $hour); setcookie(Key_startHere, $_POST['pass'], $hour); //then redirect them to the members area header("Location: myprofile.php?username=$username"); \[/code\]But instead, I just keep getting:\[code\]Warning: extract() [function.extract]: First argument should be an array in /mounted-storage/home94c/sub005.... myprofile.php\[/code\]I would appreciate your answers. Thank you.
 
Top