Hey,
Im kinda confused about something im having a problem with. I am am in the process of making a quiz script. Located @ http://www.topshotter.com/quiz to see what i mean
The code below will explain in more detail. I am trying to get the script to detect if any of the forms are blank. I know how to but it all depends on how many questions someone has requested to setup.
<?php
if ($n == $null) {
echo "<b><i>halt</i></b>";
exit;
}
#echo "$answer1_1 $answer1_2 $answer1_3";
$i=1;
while ($i <= $n):
if ($answer$i_$i == $null) {
echo "Required Fields are missing.<br></br>\n";
echo "Answer #$i is blank, ";
}
$i++;
endwhile;
?>
the problem I am having is well it wont work. Don't mind the code its in "Debug" mode lol. I hope this is understandable to you. Hope to get some help with this.
Thanks a bunch!
b0r3d