the variable, submit, he is using in this example is not capitalized. so that wouldn't work in this case.
> > <input type="Submit" name="submit" value="Registrer"><br> </form> "Laserjetter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Have you checked the capitalisation? (It seems ok in this bit of code) > Try changing $submit to $Sumbit anyway - see if it helps > > LJ > > "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