Form select multiple question

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi All.

I have a form element which is 'select multiple'.

Strange thing is, this does not behave as a multiple select.

I don't have this published anywhere at the moment to demonstrate.

The form is also posting binary data for upload to the server. Could the
enctype be causing the problem? This form works works fine when just
used on a 'standard' form not posting binary data.

The binary data is collected via the persits asp upload component, could
this be the issue?

For debugging the form data I have just used:

response.write SubCat

Output always displays the first value option and this is before any
form processing has occured.

Relevant HTML is as follows.

<form action="/Process.asp" method="post" enctype="multipart/form-data">

<select name="intSubCat" size="6" multiple>
  <option value="1">option1
  <option value="2">option2
  <option value="3">option3
  <option value="4">option4
  <option value="5">option5
  <option value="6">option6
  <option value="7">option7
  <option value="8">option8

Any insights would be greatly appreciated.


Re: Form select multiple question

Si wrote:

Quoted text here. Click to load it

Should not

Probably an ASP issue. Perhaps you have to use another method to get all
submitted values as a list. Or it may works similar to PHP where you have
to name the select as intSubCat[] in order to tell PHP that it should
expect more than one value.
Anyway, ask you local ASP guru.

Quoted text here. Click to load it

You might change the form method to "get" - just to test, if the problem is
really in the server-side code. If you select multiple options and submit,
the URL should look like

Benjamin Niemann
Email: pink at odahoda dot de
WWW: /

Re: Form select multiple question

Gazing into my crystal ball I observed Si

Quoted text here. Click to load it

IIRC, Persits does not allow other form data within the same form, or it is
in a different collection.  Check the Persists help files.

Adrienne Boswell
Please respond to the group so others can share

Site Timeline