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!

Peculiar Situation in List box submitting - Your F1 Needed 1

Status
Not open for further replies.

Deadline

Programmer
Feb 28, 2001
367
US
Hello friend,
I have a multiselect list box, that I need to submit to the next .asp page. But the user may or may not select the options in that list box.

I mean, whatever options are present in the list box, all of them should go to the next page..irrespective of whether the user has selected any options or not..

How to accomplish this ?

Keywords

Listbox List Box Multiple Multiselect Submit Submission Form Drop Down DropDown select option Thank you...
RR

 
Hi DesperateCoder,

I think that the better solution is to make a string with all your values separated by a "," or a "§" and put this string in an hidden form.
After the submission, you don't take care of what was selected, just request your hidden form and parse it on "§" or ",".

Hope this helps...
 
Hi SeAL,
Thank you.. I found out another logic:

It is by setting all of the options'
Code:
selected
property to true just before submitting.

Then it goes perfectly. :)

Thank you...
RR

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top