I'm not to clear on exactly what you meant.
What I tried with your code was to add these lines
print "</select></center>";
print "<script language=javascript>";
print " document.frmForm.earnType.name = \"earnType[]\" ";
print "</script>";
prior to my submit button
print "<br><center><input type = \"submit\"
value =\"Submit\"></center>";
I still get a single value returned.
Vasu Gokaraju wrote:
> I think we can handle this by changing the element name before you
> submit the form.
>
> For example, you have a select box like:
>
> <select name=selTest>
> <option>Value1
> <option>Value2
> </select>
>
> before you submit the form, change the <select> tag name like this
>
> <script language=javascript>
> document.frmForm.selTest.name = "selTest[]";
> </script>
>
> It worked for me with multiple check boxes.
>
> Vasu
>
>
>
>
> From: Michael Kelley <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Multiple value selection box (mix php/html
> problem) returning only one value
> Date: Tue, 22 May 2001 12:20:16 -0600
>
> Sorry Matt,
> That returns
> Key: 0, Value: Array
>
> If you don't mind, point out the suspect HTML
>
> Matt Williams wrote:
>
>> Hi Michael
>>
>> Sorry brain fade
>>
>> Try changing your selectname to earnType[]
>>
>>
>>> print "<center><select name = \"earnType\" multiple size = \"10\">";
>>
>>
>>
>>> print "<center><select name = \"earnType[]\" multiple size = \"10\">";
>>
>>
>>
>> Also I don't know if that's all your code but there is some suspect
>> html in
>> there
>>
>> M@
>
>
>
> --
>
> Michael Kelley
> [EMAIL PROTECTED]
>
> Programmer/Systems Analyst I
> New Mexico State University
> Information and Communication Technologies
> Work # (505)-646-1374
> P.O. Box 30001
> MSC: 3AT
> Las Cruces, NM 88003
>
>
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
Michael Kelley
[EMAIL PROTECTED]
Programmer/Systems Analyst I
New Mexico State University
Information and Communication Technologies
Work # (505)-646-1374
P.O. Box 30001
MSC: 3AT
Las Cruces, NM 88003
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]