Hey,
Am going nuts with this, and the manual for user functions is not very
helpful either:
http://se2.php.net/manual/en/functions.php#functions.user-defined
What i am doing is really simple, am trying to mail myself 3 variables from
a include file.
I am getting everything except the 3
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
try setting them global as they are outside the function
global $admin,$site,$lic
etc ..
-Original Message-
From: Ryan A [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 01, 2004 2:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP] 3 variables not passing to function!!!
Hey,
Am going
On Sunday 01 February 2004 11:06, Ryan A wrote:
Am going nuts with this, and the manual for user functions is not very
helpful either:
http://se2.php.net/manual/en/functions.php#functions.user-defined
manual Variables Variable scope
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Oh crap, variable scope:-((
thanks again.
-Ryan
On 2/2/2004 4:17:40 AM, [EMAIL PROTECTED] wrote:
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
5 matches
Mail list logo