[PHP] Re: Variable scope

2011-07-14 Thread Karl DeSaulniers

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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Variable scope

2011-07-14 Thread Shawn McKenzie
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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php