Re: why doesnt this work?
| From: | George Lioumis | Date: | Fri, 08 Feb 2002 13:37:44 +0000 |
| Subject: | Re: why doesnt this work? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16672@lists.php.net to get a copy of this message | ||
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
>
>