graham23s
08-12-2007, 07:53 PM
Hi Guys,
i now know how to display the relevant data a user has selected using drop down boxes and arrays like:
<td align="right"><b>Format</b></td><td align="center"><select name="format">';
#########################################################################
foreach ($format_arrays as $value) {
echo "<option Value=\"{$value}\"";
if ($value == $format) { echo 'SELECTED'; }
echo ">{$value}</option>";
}
#########################################################################
echo ' </select>
but im not sure how to do the same with radio buttons
any help would be appreciated
cheers
Graham
i now know how to display the relevant data a user has selected using drop down boxes and arrays like:
<td align="right"><b>Format</b></td><td align="center"><select name="format">';
#########################################################################
foreach ($format_arrays as $value) {
echo "<option Value=\"{$value}\"";
if ($value == $format) { echo 'SELECTED'; }
echo ">{$value}</option>";
}
#########################################################################
echo ' </select>
but im not sure how to do the same with radio buttons
any help would be appreciated
cheers
Graham