RE: PHP checkbox/hidden field question

From: Date: Mon, 02 Sep 2002 10:46:31 +0000
Subject: RE: PHP checkbox/hidden field question
Groups: php.general 
Request: Send a blank email to php-general+get-114896@lists.php.net to get a copy of this message
you need to define the key for checkbox arrays in order to distinguish them (as only the checked ones will be posted).. something like ... <td><input type="checkbox" name="d_c_arr[<?php echo($count++); ?>]"></td> Tim Ward www.chessish.com > -----Original Message----- > From: Paul Maine [mailto:pmaine@austin.rr.com] > Sent: 02 September 2002 00:56 > To: PHP PHP > Subject: PHP checkbox/hidden field question > > > I am executing the follwoing statement as part of a "while" > loop. This is > part of a form and I wish to pass the name and value of the > checkbox as a > hidden field only is the checkbox is checked. Can you suggest > how I can > accomplish this task? > > > <td><input type="checkbox" name="d_c_arr[]" value="<?php > echo > $db->f("order_id") ?>"></td> > > Thank You > Paul > php > >

« previous php.general (#114896) next »