Click to See Complete Forum and Search --> : php and javascript


ssweb
11-20-2003, 10:32 AM
Hi,

I am writing a php program to fill data in a form.I have a listbox which is filled from a database. Based on the selection in this box, I want to populate a second listbox . How can I do this? I tried using javascript. I tried a onchange for the listbox. I have to get the value of the selection and write a query to load the second list box. I am sooooo....
confused. Please help.

ss

pyro
11-20-2003, 10:42 AM
JavaScript will not work for 13% of web users, so you probably will not want to use that. You'll probably want to use two forms, and when the first (with your dorpdown) is submitted, fill out the second.

ssweb
11-20-2003, 10:52 AM
I don't want to click submit. I have already done this by clicking submit. I want to load the second listbox without clicking submit. The javascript works for me on most occassions. I am not sure how to write a script for this. Can someone give me examples. Thanks!!!