I must apologize, I am new to this. I am trying to create a form to search a database. If the value of the SearchData is "Books", I want the value of SearchField to be "15"; otherwise, I want the value of SearchField to be "17".
This is what I've come up with thus far, any suggestions?
<FORM Name="NewItems" ACTION="../TLCScripts/interpac.dll?NewestSearch" METHOD="post">
<INPUT TYPE=hidden NAME=Config VALUE="PAC">
<INPUT Type="hidden" NAME="PeriodLimit" Value="45">
<INPUT type="hidden" name="SearchType" value="1">
<INPUT type="hidden" name="SortField" value="2">
<INPUT type="hidden" name="ItemsPerPage" value="100">
<INPUT type="hidden" name="SearchField">
New Items:<br />
<select name="SearchData" onchange="document.forms[0].SearchField.value=(this.value=="Books)?'15':'17';">
<option value="videorecording-DVD">Movies</option>
<option value="sound recording-CD">Audio Books</option>
<option value="Books">Mysteries</option>
</select>
<INPUT type=submit value="Submit">
</FORM>
This is what I've come up with thus far, any suggestions?
<FORM Name="NewItems" ACTION="../TLCScripts/interpac.dll?NewestSearch" METHOD="post">
<INPUT TYPE=hidden NAME=Config VALUE="PAC">
<INPUT Type="hidden" NAME="PeriodLimit" Value="45">
<INPUT type="hidden" name="SearchType" value="1">
<INPUT type="hidden" name="SortField" value="2">
<INPUT type="hidden" name="ItemsPerPage" value="100">
<INPUT type="hidden" name="SearchField">
New Items:<br />
<select name="SearchData" onchange="document.forms[0].SearchField.value=(this.value=="Books)?'15':'17';">
<option value="videorecording-DVD">Movies</option>
<option value="sound recording-CD">Audio Books</option>
<option value="Books">Mysteries</option>
</select>
<INPUT type=submit value="Submit">
</FORM>