Re-create a drop-down menu

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have 2 drop-down menus (1) States (2) Shows By State. My question is how  
do I invoke a re-build of the Shows By State drop-down when the user  
requests a different state. I believe this has to be done with Javascript  
and I don't know Javascript. Could someone supply a small example of how  
this is done?

I am using PHP and MySQL. Following is the PHP code for building the state  
drop-down menu:

<tr><td bgcolor="#EFC891" width="496" align="left"><b>Select a Show in Your  

<select name="ShowState" >
for ($n=1;$n<=50;$n++)
echo "<option value='$scode'";
if ($scode== $searchState)
echo " selected";
echo ">$state\n";



Re: Re-create a drop-down menu

Quoted text here. Click to load it

 The HTML_QuickForm class on PEAR has an element for this:

 Using QuickForm also gets you a lot more form building and validation
functionality as well, although this may not be quite the answer you're looking
Andy Hassall :: :: :: disk and FTP usage analysis tool

Site Timeline