Newbie Question: Forcing a page load with no click
| From: | LB | Date: | Tue, 21 Aug 2001 17:58:28 +0000 |
| Subject: | Newbie Question: Forcing a page load with no click | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-63745@lists.php.net to get a copy of this message | ||
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