<div class="page-container">
<FORM ACTION="wapdl.asp?action=login" METHOD="post" name="loginform">
<p>
<input type="text" name="username" class="username" placeholder="请输入您的用户名!">
<input type="password" name="password" class="password" placeholder="请输入您的用户密码!">
</p>
<button name="imageField" type="submit" class="submit_button">登录</button>
<div class="error"><span>+</span></div>
</form>
<%
If request("action") = "ok" then
dim name,pass
username = request.form("username")
password = request.form("password")
'//写入cookies
Response.Cookies("name") = username
Response.Cookies("password") = password
'//读cookies
a = request.Cookies("username")
b = request.Cookies("password")
response.write "username="&a&" passwords="&b&" "
End if
%>
这个是登录框
求大神帮忙写下自动登录的代码
第二次打开该页面的时候直接自动登录不用提示。 |