Dear Curt,

Thanks a lot. Is this related to the register_global variable as well? I was
stuck at the $request_method and $_SERVER['request_method'] for quite
a long time.


Wei




----- Original Message ----- 
From: "Curt Zirzow" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 16, 2003 1:22 AM
Subject: Re: [PHP] simple online form stuck at !isset($first) condition


> * Thus wrote Wei Wang ([EMAIL PROTECTED]):
> >
> > <? function show_form($first="",$last="") {  ?>
> >
> > <form action="formprac.php" method="POST">
> note the method ----------------------^^^^
>
> > First Name:
> > <input type=text name=first value="<?echo $first?>">
> > <br>
> > Last Name:
> > <input type=text name=last value="<?echo $last?>">
> > <br>
> >
> > <input type=submit>
> > </form>
> >
> > <? }
> >
> >
> > if(!isset($first)) {
>
> make this
> if (!isset($_POST['first'])) {
>
> see:
> http://php.net/language.variables
> http://us3.php.net/register_globals
>
>
> Curt
> -- 
> "I used to think I was indecisive, but now I'm not so sure."
>
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to