redirection
| From: | Norman Zhang | Date: | Mon, 29 Apr 2002 02:11:57 +0000 |
| Subject: | redirection | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95055@lists.php.net to get a copy of this message | ||
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