use require_once("<page>"); to include the page.... or use header("Location: <page>"); to redirect to a different page ----- Original Message ----- From: "LB" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 21, 2001 10:58 AM Subject: [PHP] Newbie Question: Forcing a page load with no click > 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] > -- 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]