Re: [PHP] how to user

2002-10-15 Thread Rasmus Lerdorf
You need to name it name="fieldname[]" in your HTML and then access each selected value using $_REQUEST['fieldname'][0], $_REQUEST['fieldname'][1], ... -Rasmus On Wed, 16 Oct 2002, Khalid El-Kary wrote: > hi, > If i have a form that has a with multiple="ture" how would i be > able to retireve

RE: [PHP] how to user

2002-10-15 Thread John W. Holmes
> -Original Message- > From: John W. Holmes [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 15, 2002 9:36 PM > To: 'Khalid El-Kary'; [EMAIL PROTECTED] > Subject: RE: [PHP] how to user > > > hi, > > If i have a form that has a with mult

Re: [PHP] how to user

2002-10-15 Thread Jonathan Sharp
If I remember correctly, you must set the name field with [] to make it an array. Example: then $foo is an array of the selections. -js Khalid El-Kary wrote: > hi, > If i have a form that has a with multiple="ture" how would i be > able to retireve it's multiple values in the PHP script, i

Re: [PHP] how to user

2002-10-15 Thread Chris Wesley
On Wed, 16 Oct 2002, Khalid El-Kary wrote: > If i have a form that has a with multiple="ture" how would i be > able to retireve it's multiple values in the PHP script, i tried the > $_REQUEST['fieldname'] it gave me only the last selected value You need to make sure you get back an array holdin

RE: [PHP] how to user

2002-10-15 Thread John W. Holmes
> hi, > If i have a form that has a with multiple="ture" how would i be > able to retireve it's multiple values in the PHP script, i tried the > $_REQUEST['fieldname'] it gave me only the last selected value > > note: multiple selection is done by holding ctrl :) PHP will make an array for you.