一个文本框两个按钮怎么分别提交数据
展开全部
用JS实现的,举个例子:
<script language=javascript>
function ask() {
document.all.dform.action = "ask.asp";
document.all.dform.submit();
}
</script>
<form action="search.jsp" method=get name=dform>
<input type=text>
<input type=submit value="搜索">
<input type=button value="提问" onclick="ask();">
</form>
<script language=javascript>
function ask() {
document.all.dform.action = "ask.asp";
document.all.dform.submit();
}
</script>
<form action="search.jsp" method=get name=dform>
<input type=text>
<input type=submit value="搜索">
<input type=button value="提问" onclick="ask();">
</form>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询