If it's not prohibitive, you can pre-load all the possibilities into
javascript arrays via PHP, and decide which to subset to display using
javascript.  I did this on a large on-line kid's encyclopedia, where the
page could display different lists of links using javascript depending on
where they clicked.

As an alternative, if your user interface is done in Flash, then it's a
simple matter to query the server for the list of cities to display whenever
the first has a new selection.

- Tim
  http://www.phptemplates.org

> The first one contains names of countries, the second names of cities
within those countries. When I select "Belgium" in the first one, I only
want to see all Belgian cities.
> Now with JavaScript this wouldn't really be a problem, I guess, but I need
PHP for going into my database.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to