Bullo
09-12-2002, 09:26 AM
Hi,
I have a drop down box that contains categories read from a database. There is a drop down box below it that has sub categories related to each category.
When the user selects a category I want to be able to submit the form, so that it can select the correct sub categories, and then render the page again.
At the moment my code looks like this:
<form name="addproduct" action="newproduct.asp?where=add" method="post">
<select name="Category" onChange="document.addproduct.submit();">
<option value=" "> </option>
<option value="12" >Clothing</option>
<option value="22" >Kids</option>
<option value="23" >Bike</option>
<option value="24" >Rucksacks</option>
<option value="25" >Sleeping Bags</option>
<option value="44" >Tents</option>
<option value="45" >Markill</option>
</select>
</form>
I have a drop down box that contains categories read from a database. There is a drop down box below it that has sub categories related to each category.
When the user selects a category I want to be able to submit the form, so that it can select the correct sub categories, and then render the page again.
At the moment my code looks like this:
<form name="addproduct" action="newproduct.asp?where=add" method="post">
<select name="Category" onChange="document.addproduct.submit();">
<option value=" "> </option>
<option value="12" >Clothing</option>
<option value="22" >Kids</option>
<option value="23" >Bike</option>
<option value="24" >Rucksacks</option>
<option value="25" >Sleeping Bags</option>
<option value="44" >Tents</option>
<option value="45" >Markill</option>
</select>
</form>