Re: List Boxes

From: Date: Mon, 27 Nov 2000 23:46:39 +0000
Subject: Re: List Boxes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27521@lists.php.net to get a copy of this message
Hi Kevin: Kevin Pate wrote: > > I want to have 1 form with 3 lists on one page. How do I have the bottom 2 > lists updated automatically after I choose an option from the first list from > the same form? Folks have mentioned JavaScript does this on the client side. Some things to consider. Client side operations should not be relied upon as a public interface. For example, some viewers will come to your site with a browser that can't handle JavaScript or has it turned off. Then, any operations performed using JavaScript will be useless. The same thing applies for cookies. The only 100% reliable thing to do is server side. In this case there are two options: consolidate all the options into one list or have users submit the first list to a second run of the script (or a second page) and storing the value of the choices from the first list in a hidden input tag. As far as dynamically generating list boxes off of a database, check out my SQL Solution class, http://www.analysisandsolutions.com/code/. It'll make your life easier. Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#27521) next »