Hello
I am using for loop on a form and posting these to the next page and I can echo the array and print 1 if there is value. If there isnt any value nothing print but I want 0 to be printed. I have tired few ways and so far nothing works. Can someone help me
<?php foreach ($_POST["choice"] as $question => $answer) {
if($answer = "") {
$val=0;}
else $val = 1;
echo "Choice ID: .$question. $val<br />";
}?>