Hello,
I have a form with one select box. I’d like to make the onchange method works. The form looks like this:
<form name=”form2″ action=”wtm.pl?tab=edit” method=”get” enctype=”multipart/form-data”>
<table border=”0″ cellpadding=”2″ cellspacing=”0″ class=”pagestyle” align=”left” width=”100%” style=”border:1px solid #999999;”>
<input name=”choice” type=”hidden” id=”choice” value=”finish”>
<tr>
<td align=”left” colspan=”2″ nowrap>
<select name=”proj” style=”width:160px” id=”status” onChange=”this.form2.submit(this.form2.choice.value=’proj’);”>
<option value=””>- Select Project -</option>
<!– TEMPLATE_BEGIN: prjactivity.tpl –>
<option value=”$$value” $$selected>$$name</option>
<!– TEMPLATE_END: prjactivity.tpl –>
</select>
</td>
</tr>
</table>
</form>
My problem is that when I choose an option from the select box I don’t get a variable “choice” in the URL. My onchange method does not work at all.
Please, if you find my mistake, help me.