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="#EFC89 1" width="496" align="left"><b >Select a Show in Your
State: &nb sp;
<select name="ShowState " >
<?php
$stateName=getS tateName();
$stateCode=getS tateCode();
for ($n=1;$n<=50;$n ++)
{
$state=$stateNa me[$n];
$scode=$stateCo de[$n];
echo "<option value='$scode'" ;
if ($scode== $searchState)
echo " selected";
echo ">$state\n" ;
}
?>
</select>
Thanks,
Vic
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="#EFC89 1" width="496" align="left"><b >Select a Show in Your
State: &nb sp;
<select name="ShowState " >
<?php
$stateName=getS tateName();
$stateCode=getS tateCode();
for ($n=1;$n<=50;$n ++)
{
$state=$stateNa me[$n];
$scode=$stateCo de[$n];
echo "<option value='$scode'" ;
if ($scode== $searchState)
echo " selected";
echo ">$state\n" ;
}
?>
</select>
Thanks,
Vic
Comment