Re: 3 variables not passing to function!!!????

From: Date: Mon, 02 Feb 2004 03:17:40 +0000
Subject: Re: 3 variables not passing to function!!!????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-176492@lists.php.net to get a copy of this message
Ryan A wrote:
I am getting everything except the 3 variables($admin,$site,$lic), heres my function: ******************* include_once('PRO-Config.php'); echo $admin; // This was a test to see if I am getting the value from the include..I am. function sendEmail() { [snip]
Admin: $admin Site: $site Lic no: $lic
variable scope, variable scope, variable scope. $admin does not exist inside the function unless you pass it or make it global. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#176492) next »