need help, eyes too blurry...simple login that if satisfied from db comparison goes to specified page, otherwise bounce back to self display same form with a message at top of the form. basically want to use HTTP_REFERER to determine the error message, if it comes from itself then display anywhere else don't just form. for errror checkin i tried displaying the variable either way, and it is always empty the first time i go to the script no matter where i am coming from, on an unsuccessful try it states itself as the referer and displays message (good) but every time afterwards no matter where i am coming from it still display itself as the referer and shows the message....please help goin nuts on the eas-e stuff....bit of code for ya below:
if($SERVER['HTTP_REFERER'] != "http://germiphene.com/php/log.php"){
echo $SERVER['HTTP_REFERER'];
?>
<form action="val.php" method="POST">
-form stuff
<?php
}
else{
echo $_SERVER['HTTP_REFERER'];
echo "Invalid Username/Password...please try again";
?>
<form action="val.php" method="POST">
-form stuff
validation page is fine, here's the address www.germiphene.com/php/log.php should go to www.germiphene.com/productline/IC/menu.html on success and self on failure, Test and test are name/pass...I trust ya, nothin to look at anyhow. just see what happens when you get there from somewhere else or go back after signing in once.