|
Posted by NC on 08/21/07 18:24
On Aug 21, 12:16 am, "Fabio" <znt.fa...@virgilio.it> wrote:
>
> Is there a way to know if the page is:
> - directly called from the browser
Directly meaning by typing the URL into the browser's address bar?
Yes, but it's not 100% reliable; $_SERVER['HTTP_REFERER'] should be
empty.
> - called by the submit button pressed in POST mode
> - called by the submit button pressed in GET mode
You can use $_SERVER['REQUEST_METHOD'], but you would do well to
remember that almost anything a browser does to access content can be
emulated by other programs.
Cheers,
NC
Navigation:
[Reply to this message]
|