ok i have this page that you enter your userid and pwd into index.php, then it sends it to verify.php and determines the userid and passwd then sends them to the correct page example..
if userid=brooks tehn it will send it to user.php
well in user.php i have this code......
<?
if($HTTP_REFERER != "http://tuna.port-aransas.k12.tx.us/~brooks/scripts/verify.php")
{
header("Location: http://tuna.port-aransas.k12.tx.us/~brooks/scripts/wrong.php");
}
print("IT WORKED");
?>
but it seems to be working backwards, it will everything but the page it is supposed to let in so anyone can see it unless you came from where you enter your id. seeing that you start at index.php ive also tried..
if($HTTP_REFERER != "http://tuna.port-aransas.k12.tx.us/~brooks/scripts/index.php")
but it does the same thing, any help is appreciated,
thanks
-BS