RE: [PHP] PHP not working, giving "undefined variable"

From: Date: Sat, 24 May 2003 19:13:50 +0000
Subject: RE: [PHP] PHP not working, giving "undefined variable"
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148873@lists.php.net to get a copy of this message
Thanks so much. That worked.. putting up the "E_ALL & ~E_NOTICE" for the error_reporting. And that was actually very stupid. You're right, do we give var $submit? I mean there was actually no error.. and if you have the reporting on, it makes it an error. Thanks, PHPSpooky ______________________________________ "If God had wanted me otherwise, He would have created me otherwise." - Johann Wolfgang von Goethe default the E_NOTICE is on , turn that one off in php.ini check out the error_reporting section of php.net, i know its annoying , but seriously how do u not get those errors to show up , is the var supposed to be set like ? -----Original Message----- From: PHP Spooky [mailto:phpspooky@mjimm.com] Sent: Sunday, May 25, 2003 4:31 AM To: php-general@lists.php.net Subject: [PHP] PHP not working, giving "undefined variable" 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#148873) next »