Jump to content

echo'ing http_referer


Recommended Posts

I have cobbled this together to echo my message only if the current_mp is on or lower than 499, and only if the user has come from a specific page.im getting the following error with the below code, can anyone see what I have done wrong?Parse error: syntax error, unexpected ':' in /var/www/html/testdir/cloud/walktest.php on line 292

<?phpif (($current_mp <= 499) && ($_SERVER['HTTP_REFERER'] == http://testsite.com/file.php)) {  echo '<div class="header_pos">Not enough Magic Points<br /><br /></div>';}?>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...