954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Send all items in a listBox to SQL server database table

Is it possible to save everything in a listbox into the SQL database table?

I was given a suggestion:
Allow MULTIPLE in select tag to make the user
select all/any of them or write Java Script code
to loop thru the length of select and append
them to a hidden variable. Then submit the
form.

For MULTIPLE use VBScript Split() function to break
on "," (comma).

However, my listbox is used to display values from buttons. A1, A2 etc. As such its not meant for users to select the items in the listbox. How do i save the values, A1, A2 etc displayed in the listbox directly into the SQL table without users selecting the items.

I would appreciate if there's guidance with codes.

Naters_uk
Junior Poster in Training
50 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You