I have two forms the first form contains two drop-down element. I want the second form action value to be changed based on the drop-down values selected in form 1
Form 1
<form method="post" style="padding: 10px 0px 10px 5px;">
<label>Front/Rear Tire:<br/><select name="tire" class="first">
<option value="">Select</option>
<option value="rear">Rear Tire</option>
<option value="front">Front Tire</option>
</select> </label>
<label>Tractor Type:<br/><select name="tractor" class="second" disabled>
<option value="">Select Type</option>
<option value="2wd">2WD</option>
<option value="mfwd">MFWD</option>
<option value="4wd">4WD</option>
</select> </label>
</form>
Form 2 looks like
<form method="post" action="A.php" >
</form>
I want.
if rear Tire and (2WD or 4wd) Selected i want to change
action
value to 'A.php`if Rear Tire and (MFWD) Selected i want to change
action
value to 'B.php`if Front Tire and (2WD or $wd) Selected i want to change
action
value to 'C.php`if front Tire and (MFWD) Selected i want to change
action
value to 'D.php`