Re: why doesnt this work?
| From: | Nicole Amashta | Date: | Fri, 08 Feb 2002 14:42:58 +0000 |
| Subject: | Re: why doesnt this work? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-11913@lists.php.net to get a copy of this message | ||
Check your PHP.ini file for the line:
error_reporting =
This is where you set how PHP will report errors and warnings, notices, etc.
Use this line in place of what you have already:
error_reporting = E_ALL & ~E_NOTICE
This will stop the warnings of you not predefining and initializing
variables (which isn't really necessary in PHP).
Try that and see if it helps ...
~nicole
==========================
"Chris" <tometerlaks@hotmail.com> wrote in message
news:20020208133805.41905.qmail@pb1.pair.com...
> 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.
>
>
>