Re: HTML/PHP's static state problem.

From: Date: Mon, 09 Jul 2001 16:50:27 +0000
Subject: Re: HTML/PHP's static state problem.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-56968@lists.php.net to get a copy of this message
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.

« previous php.general (#56968) next »