<!--#include file="conn.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="../fuction.asp"-->
<!--#include file="inc/md5.asp"-->
<% 

 
linkname=nosql(trim(Replace(Request.Form("linkname"),vbcrlf," ")))
url=nosql(request.form("url"))
if linkname="" then
response.write"<script language='javascript'>alert('对不起，请填写完整信息')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
response.end
end if
	
if isempty(url) or url="" then
response.write"<script language='javascript'>alert('对不起，请填写完整信息')</script>"
response.write "<script language='javascript'>history.back(-1)</script>"
response.end
end if
  


conn.execute("insert into link (linkname,url) values('"&linkname&"','"&url&"')")
session("lasttime")=Now()
response.write"<script language='javascript'>alert('信息提交成功！')</script>"
response.write "<script language='javascript'>window.location='index.asp'</script>"



%>

