(i searched and couldn't find these answers)
someone was nice enough to post this code (which made a few changes to the variables) -- thank you.
my questions:
1) how do you input the results into a database with javascript? i have the database, and tables set already...and know how to write php code to do it.
2) when the applet is initialized, the drop down on the left displays options, but there are no options on the right drop down. it's not until you go through each option that they all show up on the right...how can you change that?
3) is there a way to add more than 2 dynamic drop downs in this code? i am not too familiar w/ javascript.
THANK YOU SO MUCH IN ADVANCE!!!!
<script type="text/javascript">
<!--
function select1(selected)
{
newBox = document.forms.myform.box2
if (selected=="ford")
{
x=new Array("Econoline","Taurus","Explorer")
}
else if (selected=="chevrolet")
{
x=new Array("Tahoe","Corsica","Trailblazer")
}
for (i=0; i<x.length; i++)
{
newBox.options[i] = new Option(x[i])
}
}
//-->
</script>
<form name="myform">
Choose a Make & Model:
<select name="feeling" onchange="select1(this.options[selectedIndex].value)">
<option value="ford">Ford</option>
<option value="chevrolet">Chevrolet</option>
</select>
<select name="box2">
</select>
</form>