Here's one example:
Code:
<form id="myForm">
<select onchange="document.getElementById('myForm').submit()">
<option value="GET Variable name">"Enter your GET Variable name here so that the value stored it in reflects here."</option>
<option>---------</option>
<option>Red</option>
<option>Blue</option>
</select>
<noscript>
<input type="submit" value="Go" id="mySubmit" />
</noscript>
</form>
<form id="myForm2">
<select onchange="document.getElementById('myForm2').submit()">
<option>Clothes</option>
<option>Paint</option>
</select>
<noscript>
<input type="submit" value="Go" id="mySubmit" />
</noscript>
</form>
What else you need to do is to capture the value from the URL using GET method & store it in a variable to use it to display the selected value.
When form loads for first time your first combo-box would be blank but on reload after selecting a value your GET variable would fill in the blank space & even after reloading you'll get to see the value you selected.
Further, this way would allow you to inter-link your combo-boxes or, other form methods to use dynamic content like using value from first combo-box to fire an SQL query with the GET variable as one of the conditions & get only the desired results in the next box specific to the selected value above.
I hope it helps.
If you're still unsure try googling "Self Submitting Combo-Box". You might get even more lucky.
Ankit Mathur
Bookmarks