Re: headers

From: Date: Mon, 07 Aug 2000 23:48:15 +0000
Subject: Re: headers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10555@lists.php.net to get a copy of this message
Hi Larry: LDL Enterprise wrote: > > I have a page that users enter their usename and password to login. when they submit their > username and password to a MySQL database I want to direct them to a .php page. I want to include > their "id" field and have the page check if there is an "id" and if true then it > would load the page. If not then it would load the login page again. > > Thanks in advance for any help. First, dude, turn line wrapping on for your outgoing email. Second, what have you tried thus far, or are you expecting us to do your work for you? Third, if you are, here are some leads for you at least... Pages should run a query on the ID before presenting any text to the browser. If the ID matches, continue with the page. If there's no match, use header("Location: login.htm") to send them to the login page. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y More than just answers. Solutions. (SM) http://www.analysisandsolutions.com/ 4015 7 Av #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#10555) next »