Re: Re: mysql table row updation based on user input.
| From: | Jasper Bryant-Greene | Date: | Sun, 18 Sep 2005 21:31:28 +0000 |
| Subject: | Re: Re: mysql table row updation based on user input. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222607@lists.php.net to get a copy of this message | ||
John Taylor-Johnston wrote:
Me thinks you have to name the checkboxes differently, otherwise the post variable will only take the last value it found, overwriting previous values. Otherwise they act like radioboxes.No, he's passing an array of checkboxes -- see the [] ? If you haven't seen that done before check out these pages: http://php.net/language.variables.external#AEN3832 http://php.net/faq.html#faq.html.arrays -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/print "<TD style='border: 1pt solid black cell-padding: 3px'><input type='checkbox' name=\"id[]\" value=\"".$row["id"]."\"> </TD>";