⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 save.asp

📁 wap建站
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<!--#include file="conn.asp"-->
<% if pno="" then response.redirect "index.asp" %>
<%
site=request("site")
url=request("url")
ids=request("ids")
if ids="" or ids<0 then ids=0

if site="" then response.redirect "add.asp"
if url="" then response.redirect "add.asp"

set rs=Server.CreateObject("ADODB.Recordset")
rsstr="select * from [bookmark] where [num]='" & pno & "' order by ID desc"
rs.open rsstr,conn,1,2

dim errr
errr=0
if rs.recordcount>0 then
	if rs("site")=site and rs("url")=url then errr=1
end if

if errr=1 then eer="请不要重复添加,<br/>正在返回书签首页!<br/>"
if errr<>1 then
rs.addnew
if site<>"" then rs("site")=site
if url<>"" then rs("url")=url
if ids<>"" then rs("classid")=ids
rs("num")=pno
rs.update
end if

rs.close
set rs=Nothing
conn.close
set conn=nothing
%>
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<card title="添加书签" ontimer="list.asp?ids=<%=ids%>">
<timer value="20"/>
<p>
<%if eer="" then%>
添加书签成功,<br/>
正在返回书签首页!<br/>
<%else%>
<%=eer%>
<%end if%>
----------<br/>
<a href="index.asp">[书签首页]</a><br/>
<a href="../index.asp">[网站首页]</a><br/>
</p>
</card>
</wml>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -