how do I actually add the vars to the form being submitted?
Code:
<script language="JavaScript1.2" type="text/JavaScript1.2">
function getFormValues(form){
var theSelect = form.elements['cat'];
var selectedText = theSelect.options[theSelect.selectedIndex].text;
var selectedValue = theSelect.options[theSelect.selectedIndex].value;
var query = form.elements['query'].value;
form.submit();
}
</script>
and on the button for the form i have:
Code:
<input type="button" name="Button" value="Search" onClick="getFormValues(this.form)">
Bookmarks