Page 1 of 1

ReDirect Users ?

Posted: Sat Aug 24, 2002 9:20 am
by HUWUWA
Hi guys, is there anything equivalent to the ASP function Response.Redirect()? My guys fill out an HTML form which goes to a PHP page, I pass a hidden value so the PHP page can see if they got there from the form page, if not I want to redirect them to the form page.

In other words, I don't want some guy typing into their browser mysite.com/myform.php

Thanks guys.

Posted: Sat Aug 24, 2002 9:24 am
by volka
you may use include() for almost the same purpose.
take a look at virtual() - but it's apache-only :?

Posted: Sat Aug 24, 2002 10:29 am
by DSM
I have something like that set up for a downloads page...
They login and I set session variables, then during the auth stage if $_SESSION[login] != whatever, they are redirected to a 401 page with header("Location:401.php"); else they are allowed access...