Re: how can php get the values of a group of checkbox

From: Date: Fri, 22 Nov 2002 06:54:28 +0000
Subject: Re: how can php get the values of a group of checkbox
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-125560@lists.php.net to get a copy of this message
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. */

« previous php.general (#125560) next »