Posted by Jerim79 on 12/13/06 19:12
I have a 3 page PHP script. I only want people to be able to access the
first page of the script by URL. The other 2 pages need to return a
message such as "This page can not be accessed directly." if someone
tries to call it up by URL.
I did this a month or so back using an If statement at the beginning of
the PHP code. Something along the lines of:
if (access_method=POST){
Perform PHP Code
}
Else{
echo "This page can not be accessed directly.";
}
I just can remember the correct method to call to check against, and I
can't find the old script I worked on previously. Any help would be
appreciated
Navigation:
[Reply to this message]
|