表格提交问题!form action="

为什么我登陆却转到搜索去了啊,这问题怎么解决???

这一段在上面(搜索的): <form action="search.asp" method="get" target=_self><input style="{background-image: url('../img/sb.gif');height: 20; width: 49;border: 0px none" <I>value</I>="搜 索" type="submit"></td>

这一段在下面(登陆的):
<form action='UserChkLogin.asp?hx66=login'method='post'>
<table width='175' height='136' border='0' cellpadding='0' cellspacing='0' bgcolor='#FFFFFF' align=center>
<tr>
<td height='30' align=center>帐号:<input class='input' maxlength='16' size='13' name='username' title='输入您的ID' type='text'></td>
</tr>
[828 byte] By [zxskj] at [2008-1-9]
# 1
type="submit" 改成button吧

分别提交
circlew20 at 2007-9-30 > top of Msdn China Tech,Web,ASP...
# 2
如果上面的代码都在一个页面的话,提交类型最好是不要相同
而且建议在一个页面尽量避免有两个form
lcw321321-文子 at 2007-9-30 > top of Msdn China Tech,Web,ASP...
# 3
怎么没有</form>???
还要记得给你的form一个id属性
84shelley-影朔 at 2007-9-30 > top of Msdn China Tech,Web,ASP...
# 4
你的登陆就没有submit吗,submit在搜索上面,当然转到搜索页了