Re: Redirection Question.
| From: | Pac mon | Date: | Sat, 19 Jan 2002 10:30:34 +0000 |
| Subject: | Re: Redirection Question. | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11522@lists.php.net to get a copy of this message | ||
A lot of people have trouble with sending the Location header. A more effective means is sending this:
header("Refresh: 1;url=/path/to/myinfo.php");
I believe that's right. I haven't done it in awhile...
Here is where the code is failing. if ($myrow = mysql_fetch_array($result)) { //if there is a row in the database then the user //must have submitted the username and matching password session_start(); session_register($username); header ("Location: ./myinfo.php"); //THIS IS NOT WORKING!!!!! //exit; /* I tried with and without the exit. If I do without the exit nothing happens and the below is not shown on the screen. When I try it with the exit the below is shown and I'm still not redirected. */ //echo "<b><i>We have located you in the database!</b><p>"; } else {echo "<b><i>No Records Found!</b><p>";} //Show login again Any tips, ideas, or suggestions would be greatly appreciated. Thanks, Curt www.killerpigs.com www.scdservices.com www.angryland.com Get your Free E-mail at http://scdservices.com ____________________________________________________________ Get your own FREE Web and POP E-mail Service in 14 languages at http://www.zzn.com. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net_________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com