I'm sure there is something simple I'm overlooking, but can anyone please tell me why this does not work:
function terminate_check($cid,$terminate_q,$operator_val) {
global $terminate_result;
echo "terminate_q = $terminate_q<br>";
if($cid < $operator_val) {
if ($terminate_q != '0') {
// terminate response, but should not terminate immediately
$terminate_result = 'N';
$terminate_q = $terminate_q;
}
else {
// a terminate immediately response was given
$terminate_result = 'Y';
}
}
}
terminate_check('9','3','10');
echo "<br>terminate_result=$terminate_result | terminate_q = $terminate_q";
It echos the $terminate_result var correctly, but the $terminate_q var is empty. Thanks in advance for the help.