Oh well....

it depends on how you name your checkboxes controls,

for example:
<input type="checkbox" name="answers[]" value=1>
<input type="checkbox" name="answers[]" value=331>
<input type="checkbox" name="answers[]" value=21>
<input type="checkbox" name="answers[]" value=41>

when the user selected any of the checkboxes you will have a array called
$answers which holds each of the IDs of the answers.

same for displaying the results, you can have it get selected by default as:

<input type="checkbox" name="answers[]" value=<?=$row['id']?> <?=$condition
? ' checked': ''?>>

Elias

"Stephanie" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Here's my problem: I have a form in which there is a question and 5
> checkboxes to select from (ex: you can select more than one checkbox)
>
> I need to get each checkbox that is selected to show up when it is inputed
> into the mySQL DB.
>
> I can get the first selected checkbox in, but nothing I've done seems to
> work.
>
> Any help would be much appreciated :-)
>
> Stephanie
>
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to