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!
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
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...