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

📄 link_action.asp

📁 if you want it,call me.
💻 ASP
字号:

<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
</head>
<body>
<%
	dim href,text
	href=request.Form("href")
	text=request.form("text")
	edit=request.QueryString("edit")
	if edit="true" then
		set linkrs=server.CreateObject("adodb.recordset")
		strsql="select * from link where id="&session("linkid")
		linkrs.open strsql,db,1,2
		'linkrs.addnew
		linkrs("URL")=href
		linkrs("text")=text
		'linkrs("subdate")=now()
		linkrs.update
		response.redirect "add_link.asp"
	else
		if href<>"" and text<>"" then	
			dim linkrs,strsql
			set linkrs=server.CreateObject("adodb.recordset")
			strsql="select * from link"
			linkrs.open strsql,db,0,2
			linkrs.addnew
			linkrs("URL")=href
			linkrs("text")=text
			linkrs("subdate")=now()
			linkrs.update
			response.redirect "add_link.asp"
		else
			response.Write "<script>alert('输完哇!');history.back();</script>"
		end if
	end if	
%>
<input type="submit" value="返回" onclick="javascript:history.back();" name="btn1">
</body>
</html>

⌨️ 快捷键说明

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