Re: PHP not working, giving "undefined variable"
| From: | Marek Kilimajer | Date: | Mon, 26 May 2003 13:13:56 +0000 |
| Subject: | Re: PHP not working, giving "undefined variable" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148979@lists.php.net to get a copy of this message | ||
First, please don't highjack treads, you will have a higher chance someone will answer you.
Second, you have error_reporting set too high in your php.ini, set it to E_ALL & ~E_NOTICE and read Error Handling section of the manual.
PHP Spooky wrote:
Glory! I recently installed Apache2 on my WindowsXP system. And I'm running the latest PHP version. Everything was working fine but today I noticed something, an error. Now I don't know, I cant recall, if it's since I installed Apache2 or if it just started today. But anyway, here's the deal.. In any script that I provide where I'm using the if(!$submit) to check if the form has been submitted or not, I get the following error : Notice: Undefined variable: submit in D:\Program Files\Apache Group\Apache2\htdocs\mjs\dir\install.php on line 6 Basically it's giving me a "Notice : Undefined variable" error. Why? I have the Register_Globals turned On. And I never had this problem. I have been using this $submit variable from a long time. How do I rectify this problem? What has happened? Thanks, PHPSpooky ______________________________________ "If God had wanted me otherwise, He would have created me otherwise." - Johann Wolfgang von Goethe