Re: Multiple checkboxes

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

 



Mike Baerwolf wrote:

Hello,

I'm trying to get the values from a form post with multiple checkboxes checked . Here is what I have,

if ($row = mysql_fetch_array($result));

do {
<input type=checkbox name=class_id[] value=$row[class_id]> $row[name]

Try putting quotes around your attribute values...


<input type=checkbox name="class_id[]" value="$row[class_id]">

Also, I assume you have an "echo" somewhere? Like:

echo "<input type=checkbox name=\"class_id[]\" value=\"{$row[class_id]}\">";

--
---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

PHP|Architect: A magazine for PHP Professionals – www.phparch.com





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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux