[PHP] CheckBoxes and Arrays

2001-09-12 Thread nicolas costes
have you tried : ID\"> -- (°-Nayco, //\[EMAIL PROTECTED] v_/_ http://nayco.free.fr Ryan Stephens <[EMAIL PROTECTED]> a écrit dans le message : [EMAIL PROTECTED] > Im trying to output a list of options, each with a checkbox named "ChkBox" > and with a value

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

[PHP] CheckBoxes and Arrays

2001-09-11 Thread Ryan Stephens
Im trying to output a list of options, each with a checkbox named "ChkBox" and with a value of the ID number from the database. This is no prob. The thing is, i want to be able to select some of those checkboxes (any number, in combination) and delete the information from the database that is asso

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

[PHP] checkboxes and arrays

2001-02-12 Thread Christian Dechery
How can I associate a list of checkboxes to a list of texfields? if I had only several checkboxes I'd have: Cb1 Cb2 ... etc... but what if have: Cb1 Cb2 http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL