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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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

Reply via email to