forms

From: Date: Mon, 06 Nov 2000 17:01:34 +0000
Subject: forms
Groups: php.general 
Request: Send a blank email to php-general+get-23918@lists.php.net to get a copy of this message
I have a login script.so if the person enters the wrong username or password or nothing at all he is directed back to the login page,however if they enter the right username/password i want them to go straight to the page but i cant get it to work,just now i can get it to display a link to the page but not take them to the page directly. the code is if ($num != 0) $msg = "<a href=\"forum.php\">enter</a>"; } else header("Location: http://localhost/login.htm"); exit; } I thought i could have replaced $msg with header("Location: http://pathtopage"); exit; Thanks in advance George

« previous php.general (#23918) next »