Reply to Re: How do I set $submit.

Your name:

Reply:


Posted by Tobierre on 10/13/43 11:29

Hi Simon,

Do the following as all form variables can be found in the $_POST[] global
array

if(isset($_POST['submit'])
{
do something
}
else
{
display form
}

Tobierre

"Simon Long" <simon@splatdesign.uklinux.net> wrote in message
news:dird8v$run$1@s1.uklinux.net...
> Hi
>
> I'm running PHP 5.0.0.2b on W2K 5.0.0.2195 SP4 using IIS as the http
> server (yes, I know.).
>
> I've got a form in a test.php that references itself in action and checks
> to see if the submit button has been press by
>
> 'if( isset($submit))'{
> 'do something;
> }
> else{
> do something else;
> }
>
> I've check this and $submit is never set. Please can you tell me what I
> need to do to correct this. I'm guessing that I need to change a value in
> php.ini. Register_globals is off and I'd like to keep it that way.
>
> Thanks, in advance for any help.
>
> Best wishes,
>
> Simon.

[Back to original 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

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