On Friday 22 November 2002 08:35, Xin Qi wrote:
> RE: [PHP] how can php get the values of a group of checkboxbut the question
> is how to determine the times of loop? the upper bound is hard to find. and
> the loop does cost time though it is not so much.
If you have made the checkbox values into an array either explicitly using
$checkbox[1], or implicitly using $checkbox[], then you just do:
foreach ($checkbox as $key => $value) {
echo "Value of checkbox $key is $value<br";
}
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
A fool-proof method for sculpting an elephant: first, get a huge block of
marble; then you chip away everything that doesn't look like an elephant.
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php