Re: Can any body help? Thanks.

From: Date: Sat, 24 Aug 2002 18:58:58 +0000
Subject: Re: Can any body help? Thanks.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113967@lists.php.net to get a copy of this message
Look in the archives http://marc.theaimsgroup.com/?l=php-general&w=2&r=1&s=Undefined+variable&q=b ----- Original Message ----- From: "Jingyu Zhu" <zhujingyu@hotmail.com> To: <php-general@lists.php.net> Sent: Saturday, August 24, 2002 5:45 PM Subject: [PHP] Can any body help? Thanks. hi there, I have the code like the following: *************file name is default.php****************** <?php if ($submit == "click"){ echo "Hello, $UserName"; } else{ echo ' <html><body> <form method="post" action="default.php"> Enter Your Name: <input type="text" name="UserName"></input><br> <input type="submit" name="submit" value="click"></input> </form> </body></html> '; } ?> **************** When I run this code and got the error message like this: **************** Notice: Undefined variable: submit in C:\PHP421\PHPCode\default.php on line 2 **************** I use IIS as the Web Server which is on a Win2000 box. I can run PHP code to get data from MySql database and send the response to the browser. So I think the script engine is good. Maybe I miss some configuration settings. Can anybody help? Thanks.

« previous php.general (#113967) next »