PDA

View Full Version : Populate a drop down box from a database



awinn
09-08-2004, 09:39 AM
I need to populate a drop down box from a database them depending on that select populate the next dropdown box from a database and so on. I do not want the user to have to click a button to post every box. I would like an onchange event if possible. The form has textboxes and checkboxes so the event can not wipe my other object out, Any help or sample code would be greatly appreciated. Thanks Rich awinn@state.pa.us I am using ASP, ADO, vbscript and javascript

php~pro
09-08-2004, 02:55 PM
Type poupulate dropdowns from database into google. It returns a heap of results for tutorials.

swstyles
09-21-2004, 04:15 PM
You are looking or a heirarchy of drop downs. The page has to refresh its self as you load each new drop down.
The car dealer sites do it

choose your type - acura, nissan

choose your model

choose your exact model

choose year

you basically submit to the same form over and over again being sure to pass the previous values each time you submit the form.