HTML_QuickForm2: select boxes that depend on each other

From: Date: Wed, 19 Dec 2012 14:44:57 +0000
Subject: HTML_QuickForm2: select boxes that depend on each other
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31682@lists.php.net to get a copy of this message
Hi, I've got a form with 2 select boxes, say "color" and "shade". The selectable values in the "shade" select box change whenever a different color is selected: color="green" -> available shades: "light green" and "dark green" color="blue" -> available shades: "light blue" and "dark blue" The problem I have now is that I don't know how to pre-fill the values of the second select box depending on the values of the first when building the form. Is that possible? How? -- Regards/Mit freundlichen Grüßen Christian Weiske -= Geeking around in the name of science since 1982 =-

« previous php.pear.general (#31682) next »