Re: Newbie Question: Forcing a page load with no click

From: Date: Tue, 21 Aug 2001 20:22:06 +0000
Subject: Re: Newbie Question: Forcing a page load with no click
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63746@lists.php.net to get a copy of this message
use require_once("<page>"); to include the page.... or use header("Location: <page>"); to redirect to a different page ----- Original Message ----- From: "LB" <loydNOSPAM420@hotmail.com> To: <php-general@lists.php.net> 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#63746) next »