Gowthaman,
Just at a glance, it seems that you Should Only receive One value.
<input type=\"checkbox\" Name=protid value=\"$variable\">
'Name=protid' tells me that you have only created one value.
Because they ALL have the SAME name="protid" there will be only one value.
This would be more evident if they were type=radiobox. What you need is to generate:
<input type=\"checkbox\" Name=protid1 value=\"$variable\"> <input type=\"checkbox\" Name=protid2 value=\"$variable\"> <input type=\"checkbox\" Name=protid3 value=\"$variable\"> <input type=\"checkbox\" Name=protid4 value=\"$variable\">
Or give all name="protid[]" and you will get array $_POST['protid'] that you can loop over.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php