I've built a small login script (code fragment below), and want to force a
page load depending on if the login was valid or not. How do I make PHP
redirection to a new page? Ideally, I want the equivalent of building an
query string such as "goodpage.php?Username=<?echo $Username?>" and forcing
it to load.

if (trim($CheckPW) == $Password) {
echo ("Good Login!");
}
else {
echo ("Bad Login");
}

Thanks in advance



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to