I was wondering if anyone had a quick way to search through a number of variables passed from a form and do certain actions dependent upon the value.
I was thinking about using an array rather an using a load of if / else statements.
Here is the code I've got so far, but it isn't really doing what I want:
$a = array($ID, $VCT, $IHTP, $ShareIssue);
foreach ($a as $v) {
if($v = "on"){
echo "$a : YES";
} else {
echo "$a : NO";
}