Suppose I want to store in an array the data coming from a form in a previous page, but I don't want to use implode/explode functions. Is there a way for me to know the number of chosen radioboxes in a form?
Previous page:
for ($i=0; $i <$num_results; $i++) {
$MyOptions = htmlspecialchars(stripslashes($rowb["DBField"]));
echo "<input name=\"MyOptions".$i."\" type=\"radio\" value=\"".$MyOptions."\">";
}
Actual page:
for($i = 0; $i<$HowToGetThis; $i++)
$MyArray[$i] = $HTTP_POST_VARS['MyOptions'.$index];
$HowToGetThis is the number of chosen radio boxes in the previous page, which I don't know how to access. Maybe is not even possible to do that.
Can anyone help?