登錄頁面login.html
網(wǎng)站建設(shè)哪家好,找成都創(chuàng)新互聯(lián)公司!專注于網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、微信小程序開發(fā)、集團企業(yè)網(wǎng)站建設(shè)等服務(wù)項目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了天山免費建站歡迎大家使用!
<form id="form1" name="form1" method="post" action="login.asp">
<table width="400" height="60" border="0" bgcolor="#99CCFF">
<tr>
<td bgcolor="#99CCFF"><div align="right">用戶名:</div></td>
<th width="198" scope="col"><div align="left">
<input name="name" type="text" id="name" />
</div></th>
</tr>
<tr>
<td><div align="right">密碼:</div></td>
<td><div align="left">
<input name="pwd" type="password" id="pwd" />
</div></td>
</tr>
</table>
<p align="center">
<input name="Submit" type="submit" value="登錄" />
<input name="Submit2" type="submit" onclick="MM_goToURL('parent','regist.html');return document.MM_returnValue" value="注冊" />
</p>
</form>
檢查頁面:login.asp
<%
name1=Trim(request("name"))
pwd=Trim(request("pwd"))
sql="select * from [users] where userID='"&name1&"' and mm='"&pwd&"'"
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,3,2
if rs.recordcount<1 then
%>
<script language="vbscript">
alert("用戶名或密碼錯誤!")
history.back
</script>
<% else
session("userid")=name1 %>
<script language=javascript>alert('歡迎登陸')</script>
<script language=javascript>window.location.href='shareinfo.asp'</script>
<%
end if
%>
結(jié)果去無法跳轉(zhuǎn)。
網(wǎng)站標題:asp登陸頁面的跳轉(zhuǎn)功能
網(wǎng)頁地址:http://chinadenli.net/article40/giijeo.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供虛擬主機、微信公眾號、面包屑導(dǎo)航、品牌網(wǎng)站制作、Google、服務(wù)器托管
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)