--- why do u want to know? <[EMAIL PROTECTED]> wrote:

> I have populated a dropdown list with the data in a database
> (finally), but I need to be able to populate a second dropdown list
> according to the results of the first,,,

Any time you are waiting for one browser element to change to influence the
change of another you are most likely going to use Javascript (outside the
scope of this group).

The method you use will be largely determined by your programming skills and
how many items are in your first list and your second list.  Before AJAX, if
someone wanted to do this, they might get all of the possibilities and store
them in a Javascript array.  Your Javascript program for the form will notice
that the first select list has been changed and insert the corresponding values
in the second select list.

The AJAX method involves sending an XML request to your server when the select
list has been changed.  A PHP script on your server can return data for the
second menu.  Your Javascript on the main page needs to take this data and
insert it into the second select list.

There may be some distributed scripts to accomplish this since it is a common
request.  However, as I wrote above, it is largely outside the scope of this
group.

James

Reply via email to