logon.asp?UserAccount=admin&UserPass=123456
logon.asp?UserAccount=admin&UserPass=123456
如上,一个登录页面输入用户名和密码和,可以在地址栏上看上如上显示.
为什么不能自动打开logon.asp进行登录呢?
另外怎么样在传递用户名和密码时进行加密,谢谢!
------解决方案-------------------- <form ID= "form1 " name= "form1 " method= "post " action= "logon.asp ">
<input name= "IsPostBack " type= "hidden " value= "PostBack ">
<TR bgcolor= "#CCCCCC ">
<TD height=28 colSpan=3 align=middle>
<DIV align=center> 用户名: <INPUT class=form size=10
name=UserAccount> </DIV> </TD> </TR>
<TR>
<TD height=28 colSpan=3 align=middle bgcolor= "#CCCCCC ">
<DIV align=center> 密 码:
<INPUT
class=form type=password size=10 name=UserPass>
</DIV> </TD> </TR>
<TR>
<TD height=22 colSpan=3 align=middle bgcolor= "#CCCCCC ">
<DIV align=center>
<INPUT type=radio value=company
name=userType onclick= "javascript:form1.setAttribute( 'action ', 'companyadd.asp '); "> 公司 <INPUT
type=radio value=person name=userType onclick= "javascript:form1.setAttribute( 'action ', 'logon.asp '); ">
个人 </DIV> </TD> </TR>
<TR>
<TD width=42 height=28 align=left valign= "middle " bgcolor= "#CCCCCC ">
<div align= "left "> <FONT size=2>
<input type= "submit " name= "Submit " value= "提交 " >
</FONT> </div> </TD>
//这样就可以实现你想要的效果了