Re: How to get the data of the multiple select from html in the php code.

From: L'Angel Admirable (jamesjiao_at_paradise.net.nz)
Date: 11/28/03


Date: Sat, 29 Nov 2003 11:57:25 +1300

Hi,

Refer to my reply to the post "Posting a list" 29/11/2003

==James==

-- 
====================================================
"Have a care of the manner in which you turn towards the dead.
Think not of that which perishes. Gaze steadily. You will perceive
the living light of your well-beloved dead in the depths of heaven." -- M.
Myriel
"Kalpesh Patel" <kalpeshgnpatel@india.com> wrote in message
news:7125d26d.0311272034.1d0e636c@posting.google.com...
> Hi all,
>  I have situation like this. I have a multiple select in the html page
> and I want the data of that multiple select in the php portion. What
> should I do ?
> I have tried like this but it is not working.Just go through and tell
> me if you find the solution.
>  $arr = array();
>  $arr = $_REQUEST[listOfSymptoms];
>  print $arr;
>  $String = "";
>  for ($i = 1; $i < count($arr) ; $i++) {
>      $String = $String.$arr[$i];
>  }
>
> and I have the list in the form named registration like this.
>
> <tr>
> <td><input type="button"  value="Add" OnClick= AddItem()><br>
> <input type="button"  value="Remove" OnClick= RemoveItem()></td>
> <td><select length= "5" size="4" name="listOfSymptoms"
> onChange=SetText
>           () multiple></select></td>
> </tr>

Quantcast