五笔键盘字根表:如何在一个form里用多个提交按钮

来源:百度文库 编辑:中科新闻网 时间:2024/05/16 08:19:05
<table border='0' cellpadding='0' cellspacing='0'>
<form method='Get' name='SearchForm' action='Admin_ArticleManage.asp?ManageType=MyArticle'>
<tr><td height='28' align='center'>
<select name='Field' size='1'>
<option value='Title' selected>文章标题</option>
<option value='Content'>文章内容</option>
<option value='Author'>文章作者</option>
<option value='Editor'>编辑姓名</option>
</select>
<select name='ClassID'>
<option value=''>所有栏目</option>
<option value='1'>新闻</option>
<input type='text' name='keyword' size='20' value='关键字' maxlength='50' onFocus='this.select();'>
<input type='submit' name='Submit' value='搜索'>
</td></tr></form></table>

<br>
如何变成,主要就是下拉选项Field中的value=?不知道该怎么弄。请高手指教!谢谢!!
<table border='0' cellpadding='0' cellspacing='0'>
<form method='Get' name='SearchForm' action='Admin_ArticleManage.asp?ManageType=MyArticle'>
<tr><td height='28' align='center'>
<select name='ClassID'>
<option value=''>所有栏目</option>
<option value='1'>新闻</option>
<input type='text' name='keyword' size='20' value='关键字' maxlength='50' onFocus='this.select();'>
<input type='submit' name='Field' value='按文章标题搜索'>
<input type='submit' name='Content' value='按文章内容搜索'>
<input type='submit' name='Author' value='按文章作者搜索'>
<input type='submit' name='Editor' value='按编辑姓名搜索'>

</td></tr></form></table>
主要我是想在value='按文章标题搜索'这儿用中文,而不是用value='Title' ,但是用中文后的value值就不能搜索了。这个是在ASP程序里。

一.
表单的action=""
用按钮提交:
<input type='submit' name='Field' value='按文章标题搜索'onClick="frm1.action='aaaa.asp'">
<input type='submit2' name='Field' value='按文章标题搜索'onClick="frm1.action='bbbb.asp'">

就是这样!

补充回答:

我就简单的说个思路:

<form method='Get' name='SearchForm' action="">

<select name='ClassID'>
<option value=''>所有栏目</option>
<option value='1'>新闻</option>

<input type='text' name='keyword' size='20' value='关键字' maxlength='50' onFocus='this.select();'>

<input type='submit' name='Field' value='按文章标题搜索'onClick="frm1.action='Admin_ArticleManage.asp?ManageType=MyArticle1'">

<input type='submit' name='Content' value='按文章内容搜
索'onClick="frm1.action='Admin_ArticleManage.asp?ManageType=MyArticle2'">

<input type='submit' name='Author' value='按文章作者搜
索'onClick="frm1.action='Admin_ArticleManage.asp?ManageType=MyArticle3'">

<input type='submit' name='Editor' value='按编辑姓名搜索'onClick="frm1.action='Admin_ArticleManage.asp?ManageType=MyArticle4'">

</form>

改成普通按钮,然后用个点击事件调用函数,不知道行不行

懂你的意思了,试试:

<table border='0' cellpadding='0' cellspacing='0'>
<form method='Get' name='SearchForm' action='Admin_ArticleManage.asp'><input type=hidden name="ManageType" value="MyArticle"><input type="hidden" name="Si" value="">
<tr><td height='28' align='center'>
<select name='ClassID'>
<option value=''>所有栏目</option>
<option value='1'>新闻</option>
<input type='text' name='keyword' size='20' value='关键字' maxlength='50' onFocus='this.select();'>
<input type='button' value='按文章标题搜索' onclick="document.all.SearchForm.Si.value='Filed';document.all.SearchForm.submit();">
<input type='submit' value='按文章内容搜索' onclick="document.all.SearchForm.Si.value='Content';document.all.SearchForm.submit();">
<input type='submit' value='按文章作者搜索' onclick="document.all.SearchForm.Si.value='Author';document.all.SearchForm.submit();">
<input type='submit'value='按编辑姓名搜索'onclick="document.all.SearchForm.Si.value='Editor';document.all.SearchForm.submit();">