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

Posted by petersprc on 08/21/07 07:50

If you had a button like

<input type=button name=btn value=" OK ">

You could check:

if (isset($_POST['btn'])) {
echo 'Button post.';
} elseif (isset($_GET['btn'])) {
echo 'Button get.';
} else {
echo 'Page view.';
}

On Aug 21, 3:16 am, "Fabio" <znt.fa...@virgilio.it> wrote:
> Hi!
>
> Is there a way to know if the page is:
> - directly called from the browser
> - called by the submit button pressed in POST mode
> - called by the submit button pressed in GET mode
>
> ?
>
> Thanks

 

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

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