ReDirect Users ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
HUWUWA
Forum Commoner
Posts: 35
Joined: Sat Aug 17, 2002 7:24 pm
Location: Long Island, NY

ReDirect Users ?

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

you may use include() for almost the same purpose.
take a look at virtual() - but it's apache-only :?
DSM
Forum Contributor
Posts: 101
Joined: Thu May 02, 2002 11:51 am
Location: New Mexico, USA

Post 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...
Post Reply