|
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.
Navigation:
[Reply to this message]
|