krappleby025
Programmer
I have seen many people asking about how to redirect using a drop down box, so that you do not have to submit, you change the value and you are sent to the next page...
well here is a piece of coding that does that, on your select choice, use the following
<FORM action="page.asp" method="get or post" >
<SELECT name="maingroup" onchange="submit(this.options[this.selectedIndex].value)">
<OPTION selected value="test1">test1</OPTION>
<OPTION value="test2">test2</OPTION>
</select></FORM>
The above will automatically submit the form as soon as the drop meny is changed, It acts like a normal submit so it will be sent to the form action url
hope that helps you beginners, especially, it took me ages to find that
thanks
keith
well here is a piece of coding that does that, on your select choice, use the following
<FORM action="page.asp" method="get or post" >
<SELECT name="maingroup" onchange="submit(this.options[this.selectedIndex].value)">
<OPTION selected value="test1">test1</OPTION>
<OPTION value="test2">test2</OPTION>
</select></FORM>
The above will automatically submit the form as soon as the drop meny is changed, It acts like a normal submit so it will be sent to the form action url
hope that helps you beginners, especially, it took me ages to find that
thanks
keith