Re: Re: mysql table row updation based on user input.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

print "<TD style='border: 1pt solid black cell-padding: 3px'><input type='checkbox' name=\"id[]\" value=\"".$row["id"]."\"> </TD>";


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/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux