How to get the data of the multiple select from html in the php code.
From: Kalpesh Patel (kalpeshgnpatel_at_india.com)
Date: 11/28/03
- Next message: Tom Rogers: "Re: [PHP] Telling GD2 Where Fonts Are"
- Previous message: Stiano_at_Optonline.Net: "Telling GD2 Where Fonts Are"
- Next in thread: L'Angel Admirable: "Re: How to get the data of the multiple select from html in the php code."
- Reply: L'Angel Admirable: "Re: How to get the data of the multiple select from html in the php code."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Nov 2003 20:34:49 -0800
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>
- Next message: Tom Rogers: "Re: [PHP] Telling GD2 Where Fonts Are"
- Previous message: Stiano_at_Optonline.Net: "Telling GD2 Where Fonts Are"
- Next in thread: L'Angel Admirable: "Re: How to get the data of the multiple select from html in the php code."
- Reply: L'Angel Admirable: "Re: How to get the data of the multiple select from html in the php code."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]