Yip I see what you mean. How do I parse that to a function though? i.e. I have a form, with a selection of radio buttons in it, dynamically created from a database, using a while command.
while($row=mysql_fetch_array($result))
{ echo '
<input type="radio" name="radio['. $number++ .']" size="2" maxlength="2">
}
$number is increased by 1 so I might have radio[1], radio[2], radio[3] etc.
Then I have
if ($submit) {
$worked=user_book($radio);
}
if ($worked) {
session_register('radio');
Header("Location: http://www.domain.com/confirm.php");
}
On confirm.php is..
while ($radio){
echo "$radio[0]"
}
however nothing is echoed. Any ideas why?
Cheers
Ben