You are here: Re: how to tell if a form has been posted « All PHP « IT news, forums, messages
Re: how to tell if a form has been posted

Posted by Zoe Brown on 10/01/94 11:29

"Siv Hansen" <sivh@broadpark.no> wrote in message
news:43537a7a$1@news.broadpark.no...
> Zoe Brown wrote:
>> I have a php script which includes a form. The form is submitted to
>> itself and I need the php page to know if it has a form. If the form has
>> been submitted the page will display differently.
>>
>> How do I check to see if a form has been posted and is there an easy way
>> to loop through all the posted values and spit out their names and the
>> value ?
>>
>> Zoe
>
> You name your submit button (eg submit) and checks if $_POST['submit'] has
> been set, something like this
> if(isset($_POST['submit'])){
> // do something
> }else{
> //display form
> }
>
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

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