Hi, I want to set up a check that the page cannot be exacted by calling from another page. E.g., members.php can only be excited if it called by login.php.
So I set if (eregi("members.php", $_SERVER['PHP_SELF'])) Header("Location, login.php"); at the very top of members.php. But I am being redirected to login.php no matter if members.php was called from login.php. What's proper way of implementing this? Regards, Norman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php