Try this: <?php if(isset($Submit)) { while(list($key, $value) = each($HTTP_POST_VARS)) echo"$key: $value<br>"; // Inserting into DB depands of the way you want to do it. All results in one column or each checkbox has its own column, or... // Need more info... } else { $ChekboxCopies = array(1 => 'Copy for checkbox 1', 'Copy for checkbox 2', 'Copy for checkbox 3', 'Copy for checkbox 4', 'Copy for checkbox 5' ); echo"<form method=post action=\"$PATH_INFO\">"; for($i=1; $i<=5; $i++) { echo"<input type=checkboxes name=Check.$i> $ChekboxCopies[$i]<br><br>"; } echo"<input type=Submit name=Submit value=\"Submit\">"; echo"</form>"; } ?>
----- Original Message ----- From: Stephanie To: Sent: Thursday, August 15, 2002 3:15 PM Subject: [PHP-WIN] Checkbox/Database Issues 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 -- ********************** Stephanie K. Piet OptiMetrics, Inc. 2107 Laurel Bush Rd. Suite 209 Bel Air, MD 21015 [EMAIL PROTECTED] http://www.OptiMetrics.org (410)569-6081 ext: 111 fax: (410)569-6083 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php