<form action="" method="get" name="form">
</form><select name="list1">
<option value="MUM">MUM</option>
<option value="DEL">DEL</option>
<option value="BAN">KOL</option>
<option value="HYD">HYD</option>
</select>
<select name="list2">
<option value="MUM">MUM</option>
<option value="DEL">DEL</option>
<option value="BAN">KOL</option>
<option value="HYD">HYD</option>
</select>
<input name="code" type="text" />
In above code there two list boxes .
I want to show ,if I select MUM from 1st list box and MUM from 2nd box then in text box there will be code like MUM-MUM-1.
Next time select MUM from 1st list box and DEL from 2nd list box then code will be
MUM-DEL-2.so on.
how i would to code to getting this output