Hi all,
The relavent code here for the question below.
$POSTArray = array ($_POST['a'], $_POST['b'], $_POST['c'], $_POST['d'], $_POST['e'], $_POST['f'], $_POST['g'], $_POST['h'], $_POST['i']); //** Each may, or may not have a value **//
$flagArray = array ($aFlag, $bFlag, $cFlag, $dFlag, $eFlag, $fFlag, $gFlag, $hFlag, $iFlag); //** All of these do not have a value yet **//
$p = count($POSTArray);
for ($a=0;$a<$p;$a++) {
if ($POSTArray[$a] != "") {
list($someOtherReturnedVar, $flag) = the_function ( $POSTArray[$a] ); //** Send info to the function. $flag is sent back as either "Y" or "N" **//
$flagArray[$a] = $flag; //** This is what isn't working, but is the "jist" of what I'm looking for **//
}
}
echo "aFlag = ".$aFlag;
If $_POST['a'] contains a value, I want to set the resulting flag that comes out of the function to $aFlag (or is post b isn't null, then $bFlag should be set to $flag, etc. etc).
However, when _POST['a'] does contain something, and then I echo out $aFlag, it's empty.
How do I set the corresponding variable in the $flagArray to the $flag value?
Thanks.