So I'm trying to create a search box that has two choices based on a drop down box. Each selection does a different form action. On top of that, based on the selection made, it has different input values.
something like this:
I'm a real NOOB when it comes to javascript - so any help would be greatly appreciated
something like this:
Code:
<form name="search" action="ACTION1 or ACTION2"> <select name="group"> <option value="1234">Selection 1</option> <option value="6789">Selection 2</option> <input type="image" src="search.gif" alt="search button" /> if Selection 1 is selected it gets action - "ACTION1.php" and <input type="hidden" name="direct" value="true"> <input type="text" name="bquery" size="24" value=""> <input type="hidden" name="AuthType" value="ip,cpid"> if Selection 2 is selected it gets action - "ACTION2.php and <input type="hidden" name="outside" value="true"> <input type="hidden" name="AuthType" value="wow, pow"> <input name="term" type="text" size="24">
Comment