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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop down selection displays db fields

Status
Not open for further replies.
Jun 24, 2002
19
0
0
US
SQLserver db drive site - I need to be able to let users select an option from a drop down list, that will display fields from db.

I.E.

option 1 (selected from a drop down list)

option 1 elements displayed (elements are tied to "option 1" in the database)

test1 test 2 test 3 test 4

Bob C. I/T Department WYSAC
 
You submit the form in the onchange event of the option1 select element.

On the server you query the database using the value of option1 and write the HTML back to the browser with the new list of options for the second <select> element.

-pete


 
I prefer using client-side script to do dynamic listboxes.

Check out the FAQs for this forum, section 8: Dynamic Listboxes.

--James
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top