使用JS来给form 做提交
具体例子代码:
<SCRIPT language=javascript>
具体例子代码:
<SCRIPT language=javascript>
<!--
function go(formname)
{
var url = ;
formname.method = "get";
if (formname.myselectvalue.value == "1") {
document.search_form1.uhash.value = document.search_form1.uhash.value "";
}
formname.action = url;
return true;
}
//-->
</SCRIPT>
<form name="search_form1" onsubmit="return go(this)">
<input name="open" type="hidden" value="2" />
<input name="id" type="hidden" value="1778" />
<input name="uhash" onblur="if (value ==''){value='请输入关键字'}" onclick="if(this.value=='请输入关键字')this.value=''" onfocus="this.select()" onmouseover="this.focus()" size="30" value="请输入关键字" />
<input type="submit" value="搜索" />
</form>
<input name="id" type="hidden" value="1778" />
<input name="uhash" onblur="if (value ==''){value='请输入关键字'}" onclick="if(this.value=='请输入关键字')this.value=''" onfocus="this.select()" onmouseover="this.focus()" size="30" value="请输入关键字" />
<input type="submit" value="搜索" />
</form>