Larry,
Here is my test code:
<%
if Request.ServerV ariables("REQUE ST_METHOD") = "POST" then
Set Upload = Server.CreateOb ject("Persits.U pload.1")
Upload.IgnoreNo Post = True
Upload.Overwrit eFiles = true
Upload.SetMaxSi ze 3048576
Upload.SaveToMe mory
Response.Write "Upload.Form("" language""): " & Upload.Form("la nguage") &
":<BR>"
else
%>
<form method="post" action="testche ckbox.asp" enctype="multip art/form-data">
<input type="checkbox" name="language" value="English" checked>English <br>
<input type="checkbox" name="language" value="Spanish" checked>Spanish <br>
<input type="checkbox" name="language" value="Chinese" checked>Chinese <br>
<input type="submit" name="submit" value="submit">
</form>
<% end if %>
It only get the first checked values, but not all checked values. For
example, if I checked English and Spanish, only English is returned from
Upload.Form("la nguage"). Please advice.
Vanessa
"Larry Bud" wrote:
Vanessa wrote: I have an ASP script which is used to upload files with Persits.Upload. 1
object. But I can't get the values from mutliple checkboxes in the form like
normally.
<form method="post" ENCTYPE="multip art/form-data"....>
<input type="checkbox" name="language" value="English" >English
<input type="checkbox" name="language" value="Spanish" >Spanish
<input type="checkbox" name="language" value="Chinese" >Chinese
Please advice!
What's your code to retrieve those values? You can't use request.form,
you need to create the Persits object such as
Set Upload = Server.CreateOb ject("Persits.U pload.1")
thelanguage=upl oad.form("langu age")