Is there anyway to make the variable $email available throughout the entire entire script?
function function1($value){
global $PHP_SELF,$email;
.....
<form action=$PHP_SELF..
$email=$db_row["email"];//user's email grabbed from database
}
function function2($value){
...
}
function function3($value){
...
}
if(!$action){
function1($value=blah);
}
else if.....
function2($value=blah);
function3($value=blah);
else if...
function3($value=blah);
print"$email";//Here it prints nothing
/ When the script reaches this stage, the variable $email from
function1() will be shown or printed out /
else
function1($value=blah);
I can't do much on function because there is already another
variable named $value has to be passed in each function. I've even tried this out
$email=$db_row["email"];
define('user_email',$email);
I hope gentlemen could help me to figure all these out. thank you very much