Thanks for the response.. Since you asked, I'm gonna post the script that I use and what I need.. some of you might be sick of it since I have been asking about this with different approaches..but here it goes:
<form name="doublecombo">
<select name="example" size="1" onChange="redirect(this.options.selectedIndex)">
<option selected>Manufacturer</option>
</select>
<br>
<br>
<select name="stage2" size="1">
<option selected>Models</option>
</select>
</p>
<p align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Made
between year</font> <font size="2"> <br>
<input type="text" name="lyear" size="7" value="1900">
and</font> <font size="2">
<input type="text" name="uyear" size="7" value="2002">
</font> <br>
<br>
<input type="submit" name="submit" value="Search" onClick="go()">
</p>
<script>
<!--
var groups=document.doublecombo.example.options.length
var group=new Array(groups)
for (i=0; i<groups; i++)
group=new Array()
group[0][0]=new Option ('Models')
<?
$result13 = mysql_query("SELECT something here'", $db);
while ($row13 = mysql_fetch_array($result13))
{
echo"group[13][$i]=new Option('$row13[made] - $row13[model]','ecs_database.php3?page=14&action=searchmodel&model=$row13[model]<b>&lyear=$lyear&uyear=$uyear'</b>)\n";
$i++;
}
?>
var temp=document.doublecombo.stage2
function redirect(x){
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<group[x].length;i++){
temp.options=new Option(group[x].text,group[x].value)
}
temp.options[0].selected=true
}
function go(){
creator.location=temp.options[temp.selectedIndex].value
self.close()
}
//-->
</script>
</form>
I have cut out some parts to make it neat.
This form works great before I added in the INPUT fields and this <b>&lyear=$lyear&uyear=$uyear'</b> after the link URL..
I was hoping that added the line can pass the variables entered by the users..but apparently It doesn't..
all i got from the URL bar is something like:
http://domain.com/script.php?blah=blah&<b>lyear=&uyear=</b>
no values returned...
Please help 🙂
Thanks for your time.