Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Multiline dropdown box not submitting with form
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

K
Starting Member

14 Posts

Posted - 08 June 2001 :  10:14:31  Show Profile
I have been looking at some code I have been given to work on and there are several multi-line dropdown boxes like this:

<select name="strListPA" size="3">
<%=strPA%>
</select>


where strPA is a variable that contains the html for building all the options (this works fine).

My problem is that the dropdown values are not being passed through on the form. I tried removing the
size="3"
from the dropdown and then the form value was passed through!

Does anyone know why the form values would not be passed through on a multi-line dropdown? I need to find a way round this because this display format has already been decided upon.

Thanks in advance for your help!

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 08 June 2001 :  15:45:48  Show Profile
Could you give us the HTML output of the select box code and the form code too. Because you say the problem is that the values aren't being passed and you think the problem is the "size" attribute. The "size" attribute only tells the form how many of the options to show at one time. Is this a MULTIPLE select box? Meaning users can select more than one option?

Go to Top of Page

K
Starting Member

14 Posts

Posted - 11 June 2001 :  03:24:44  Show Profile
It's not a multiple select box - they can only choose one option, but the code I am working with requires for layour purposes that the data is shown in a multi-line select rather than just the text displayed on the page on separate lines. I don't know why it's like this, but that's how they want it.

I'm afraid I can't post any code

Go to Top of Page

tilttek
Junior Member

Canada
333 Posts

Posted - 11 June 2001 :  12:50:04  Show Profile  Visit tilttek's Homepage
quote:

It's not a multiple select box - they can only choose one option, but the code I am working with requires for layour purposes that the data is shown in a multi-line select rather than just the text displayed on the page on separate lines. I don't know why it's like this, but that's how they want it.
I'm afraid I can't post any code



Be sure the are all in the same <FORM>



Philippe Gamache
http://www.tilttek.com
http://www.lapageamelkor.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07