You are here: Re: Knowing the form action « PHP Programming Language « IT news, forums, messages
Re: Knowing the form action

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация