Hi,

Thanks for the information, but it still doesn't work for me.
Can you test this on your server :

test1.html =
<FORM  action="test2.html" name=FormName method=post
ENCTYPE="multipart/form-data">
<SELECT name=aSelectField size=4 multiple>
<OPTION value=one>first</OPTION>
<OPTION value=two>second</OPTION>
<OPTION value=three>third</OPTION>
</SELECT>
<input type="submit" name="submit" value="submit">
</FORM>

test2.html =

<P>aSelectField2 : <%
@selectFields = $Request->Form('aSelectField');
print join ',', @selectFields
%>
</P>

Notice the enctype in the form, I need this for de file-upload to work.

Anton.

-----------------------------------------------------
- WestSite NV - I N T E R N E T  S O L U T I O N S  -
-----------------------------------------------------
Torhoutse Steenweg 337
8200 Brugge
BELGIUM
T.+32 50 39 41 41
F.+32 50 39 41 43
mailto:[EMAIL PROTECTED]
-----------------------------------------------------
http://www.westsite.be
http://wap.westsite.be
-----------------------------------------------------


> From: "JC Fant IV" <[EMAIL PROTECTED]>
> Date: Thu, 7 Jun 2001 09:36:35 -0700
> To: "Anton Slabbinck" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> Subject: Re: problem with multiple select
> 
> you can do two different things..
> 
>> Hi,
>> 
>> I'm having problem to get the result of a <SELECT ... MULTIPLE> field in a
>> form.
>> something like this works file :
> 
> 
> 1.) change the form from method=post to method=get
> <FORM name=FormName method=get>
> 
> and the code should work. However if you want to upload a file you are going
> to need to use  the second example.
> 
>> <FORM name=FormName method=post>
>> <SELECT name=aSelectField size=4 multiple>
>> <OPTION value=one>first</OPTION>
>> <OPTION value=two>second</OPTION>
>> <OPTION value=three>third</OPTION>
>> </SELECT>
>> </FORM>
>> <P>aSelectField2 : <%
> 
> 2. to grab the incoming post information Use
> 
> $Request->Form('aSelectField');
> this will pull in the posting form.
> 
>> @selectFields = $Request->Params('aSelectField');
>> print join ',', @selectFields
>> %>
>> </P>
>> 
> 
> I tried this code on my server and works fine.
> 
> test1.html =
> <FORM  action="test2.html" name=FormName method=post>
> <SELECT name=aSelectField size=4 multiple>
> <OPTION value=one>first</OPTION>
> <OPTION value=two>second</OPTION>
> <OPTION value=three>third</OPTION>
> </SELECT>
> <input type="submit" name="submit" value="submit">
> </FORM>
> 
> test2.html =
> 
> <P>aSelectField2 : <%
> @selectFields = $Request->Form('aSelectField');
> print join ',', @selectFields
> %>
> </P>
> 
> 
> test2.html returned
> 
> aSelectField2 : one,two,three
> #########
> 
> for uploading a file try
> http://www.nodeworks.com/asp/cgi.html
> at the bottom of the page this contains all of the info on using ASP and CGI
> to upload a file.
> 
> 
>> But I also need to upload a file with this form.
>> When I add ENCTYPE="multipart/form-data" to the form tag,
>> I can only retrieve the first selected item from aSelectField.
>> It's like the wantarray doesn't work anymore.
>> 
>> Does anybody know how to fix this ?
>> 
>> Anton.
>> 
>> -----------------------------------------------------
>> - WestSite NV - I N T E R N E T  S O L U T I O N S  -
>> -----------------------------------------------------
>> Torhoutse Steenweg 337
>> 8200 Brugge
>> BELGIUM
>> T.+32 50 39 41 41
>> F.+32 50 39 41 43
>> mailto:[EMAIL PROTECTED]
>> -----------------------------------------------------
>> http://www.westsite.be
>> http://wap.westsite.be
>> -----------------------------------------------------
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> 
> _______________________________________________________
> J.C. Fant IV
> PlanetofMusic.com
> Perl Guru ?
> 818 517 4879
> mailto:[EMAIL PROTECTED]
> _______________________________________________________
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to