[thelist] Login form PHP

Ben Phillips ben at inchima.com
Thu Aug 1 12:04:01 CDT 2002


> Problem
>   After the username and password are verified, how do I
> dynamically go to the correct partner page? fopen() does not
> seem to be working.

to redirect the user you would send a redirect header to them using the
following code:

header("location:page.php");

this must be sent before any content is outputted to the browser. but as
you are sending them to another page, you aren't outputting anything to
the browser are ya? :)

to make sure the script doesn't execute anything that is after the
header() function, i usually stick a die(); in on the line after.

benji
inchima.com





More information about the thelist mailing list