NevadaJones
Programmer
- Sep 5, 2006
- 26
I have removed extra code from the input form I posted here. There are three sets of radio buttons each set has the unique name as shown. Because the input buttons I posted are checked they have the indicated value. This information is submitted to the process form by the submit button.
Code:
<form id='Update' name='Update' action='process.php' method='POST'>
<input type='radio' name='id[9]' value'1'checked> 1
<input type='radio' name='id[10]' value'1'checked> 1
<input type='radio' name='id[11]' value'3'checked> 3
<input type='submit' name='admin' value='Up Date Status'>
</form>
Code:
foreach ($_POST['id'] as $id=>$value){
echo $_POST['id'] . " " . $id . "<p>";
}