Re: Variable scope

From: Date: Thu, 14 Jul 2011 21:29:55 +0000
Subject: Re: Variable scope
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-314082@lists.php.net to get a copy of this message
Lol.. thanks Shawn.. You just caught me trying to hide my actually variable names. guess I missed some. :P They are actually the same in my code *blushing* Any clue why the if(){ statement would make the variables $email and $reply loose their value? That was the chunk of it. Thanks for the error reporting code. Best, Karl On Jul 14, 2011, at 4:17 PM, Shawn McKenzie wrote:
On 07/14/2011 03:54 PM, Karl DeSaulniers wrote:
Can anyone explain this to me.
I can't read through all that crap, but I notice multiple times that you use undefined variables, due to typo or just not remembering what they are. You pass in $subjField but later try and use $subjectField. You pass in $e_cc but try and use $_email_cc, etc, etc, etc... Develop with: error_reporting(E_ALL); ini_set('display_errors', '1'); This will tell you about all of those undefined variables. --Thanks! -Shawn http://www.spidean.com
Karl DeSaulniers Design Drumm http://designdrumm.com

« previous php.general (#314082) next »