Re: New Problem

From: Date: Mon, 06 Jan 2003 14:23:27 +0000
Subject: Re: New Problem
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-9574@lists.php.net to get a copy of this message
Hello, "Eugene Wolff" <eugenew@htm.co.za> wrote: > Hi, > > I have the following script. When I open it says: > > Notice: Undefined variable: submit in c:\inetpub\wwwroot\phpTest9.php > on line 4 Although the input boxes all show fine. Obviously it does > not do the first part of the code because ($submit) is not equal to > true. > <html> > <body> > <?php > if ($submit){ Try if ($_POST['submit']){ instead. I think the problem is about "register_globals"--discussed a lot in PHP- GENERAL. Check the manual for more info: http://www.php.net/manual/en/language.variables.predefined.php# language.variables.superglobals or, just check the archives: http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=register_ globals&q=b HTH, - E ...[snip]... __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/

« previous php.install (#9574) next »