Re: [PHP] CheckBoxes and Arrays

2001-09-11 Thread Don Read
On 12-Sep-2001 Christopher William Wesley wrote: > On Tue, 11 Sep 2001, Ryan Stephens wrote: > >> Im trying to output a list of options, each with a checkbox named "ChkBox" > ... > > Name each checkbox "ChkBox[]" ... the brackets are the key. > > When the form is submitted, you'll have an arra

Re: [PHP] CheckBoxes and Arrays

2001-09-11 Thread Christopher William Wesley
On Tue, 11 Sep 2001, Ryan Stephens wrote: > Im trying to output a list of options, each with a checkbox named "ChkBox" ... Name each checkbox "ChkBox[]" ... the brackets are the key. When the form is submitted, you'll have an array called $ChkBox that will contain the data only from the checked

Re: [PHP] checkboxes and arrays

2001-02-13 Thread Christian Dechery
>$num_inputs = 5; // if you want 5 sets of checkboxes and text inputs. > >for ( $i = 0; $i < $num_inputs; $i++ ) > { > echo "Cb $i name=text[$i]>\n"; > } yeah... that can work, I think it's a little less messy than what I've done... I did it like this: for each checkbox I did echo

Re: [PHP] checkboxes and arrays

2001-02-12 Thread Steve Werby
"Christian Dechery" <[EMAIL PROTECTED]> wrote: > How can I associate a list of checkboxes to a list of texfields? > but what if have: > Cb1 Cb2 > how would I associate each textfield to its checkbox? In the same array? in > a different one? How?? I would recommend generating these checkbox / te