Posted by Pedro Graca on 10/22/06 20:17
James54321 wrote:
> here is my code:
> <?php
<snip>
> print "\n\t<td><center><input type=\"radio\" name=\"$ID\"
> value=\"Approve\" /></center></td>";
Make that
print "\n\t<td><center><input type=\"radio\" name=\"id[$ID]\"
value=\"Approve\" /></center></td>";
// ------------------------------------------------------^^^---^
<snip>
> if (isset($_POST['submit'])) {
>
> //this is where the code i need should go :)
forach ($_POST['id'] as $key => $value) {
// $key is now the ID from the database (unless the client lied to you)
// $value is the chosen option (unless the client lied to you)
// use them as you see fit
}
> // close connection
> mysql_close($connection);
> }
>
> ?>
--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.
[Back to original message]
|