[thelist] Login form PHP

Bill Haenel bill at webmarketingworx.com
Thu Aug 1 12:11:09 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? :)

I neglected to mention that I use the javascript technique that I described
in my last post in cases where I've already outputted to the browser.
Otherwise the header() func that Ben explained here is by far preferrable.

BH




More information about the thelist mailing list