Re: get the values of a list of checkboxes.
| From: | (Richard Lynch) | Date: | Wed, 12 Jul 2000 21:16:49 +0000 |
| Subject: | Re: get the values of a list of checkboxes. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6279@lists.php.net to get a copy of this message | ||
In article <3969FDD3.5899E6EF@ec.gc.ca>, bernie.huang@ec.gc.ca (Bernie
Huang) wrote:
> I used PHP to generate a form (form.php) of full of checkboxes. Since
> every time the number, names and values of checkboxes may vary according
> to the database, how can I get the values of the checkboxes in the PHP
> script (form_process.php)??
This is answered in the FAQ, so you may want to give that a re-read.
Turn on track_vars in php.ini, if it's not already on.
while (list($k, $v) = each($HTTP_POST_VARS)){
echo $k, ' ==> ', $v, "<BR>\n";
}
If one of the values is an array, you'll see "Array" unless you write code
to walk through that as well.
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)