HELP! I have been trying to implement a PHP solution that will limit access to a particular web page <content.php> unless someone has agreed to the terms of the conditions page <conditions.html> I have tried using the HTTP_REFERER command but I run into difficulties when I implement the script in Explorer. The script works fine in Netscape though.
Could someone please look at the following and provide some insight as to what I might be doing wrong?
Thanks in advance!
<?php
$from = $_SERVER[‘HTTP_REFERER’];
if ($from != “http://www.site.com/conditions.html”)
{print(" Sorry you have tried to link to a page which does not accept visitors directly. <br>
<a href=http://www.site.com/conditions.html>CLICK HERE</a> to enter");
exit;}
?>