Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with <SELECT MULTIPLE> tag

Status
Not open for further replies.

kook04

Programmer
Jun 26, 2001
58
US
I have a selection list that allows users to choose multiple options. However, if someone chooses more than one option, the first option is actually represented twice in the resulting selections for some reason. Let me give you an example. In the following list:

One
Two
Three
Four

Say someone selects Two, Three, and Four and presses "submit".

If you iterate through the array that holds the selections, it looks like this:

[0] = TwoTwo
[1] = Three
[2] = Four

For some reason, it is concatenating the first selection to itself and saving that.

Any ideas? Is this an HTML thing, or might I be doing something?

Thanks....Kennedy ------
KJR
 
I never had such a problem with multiple select. Most probably there is a problem with the way you reference the array that holds the multiple select items. Yea, just paste the code snippet here. ---
---
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top