Re: Re: why doesnt this work?

From: Date: Fri, 08 Feb 2002 13:41:08 +0000
Subject: Re: Re: why doesnt this work?
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-16673@lists.php.net to get a copy of this message
I forgot somthing.... <? if (isset($submit) ) // this ) { IF ($submit) // this is line 8 { ................. } } ?> ----- Original Message ----- From: "George Lioumis" <glioumis@adacom.com> To: "chris" <tometerlaks@hotmail.com>; "PHP Mailing List" <php-db@lists.php.net> Sent: Friday, February 08, 2002 3:37 PM Subject: [PHP-DB] Re: [PHP-WIN] why doesnt this work? > The first time you enter the page submit button is not pressed. That's why > it gives you this error. > Try the following: > <? > if (isset($submit) > { > IF ($submit) // this is line 8 > { > ................. > } > } > ?> > > ----- Original Message ----- > From: "chris" <tometerlaks@hotmail.com> > To: <php-windows@lists.php.net> > Sent: Friday, February 08, 2002 3:38 PM > Subject: [PHP-WIN] why doesnt this work? > > > > i get this message when i try to open this page : PHP Warning: Undefined > > variable: submit in c:\inetpub\wwwroot\testsite\registrer.php on line 8 > > > > > > form method="post" action="registRer.php"> > > Fornavn: <input type="text" name="fornavn"><br> > > Etternavn: <input type="text" name="etternavn"><br> > > <input type="Submit" name="submit" > > value="Registrer"><br> </form> > > <? > > IF ($submit) // this is line 8 > > { > > } > > ?> > > > > If you know why it doesnt work please help. > > > > > > > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.db (#16673) next »