special_add_save.asp
资源名称:qnmov30.rar [点击查看]
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:1k
源码类别:
家庭/个人应用
开发平台:
ASP/ASPX
- <!--#include file="articleconn.asp"-->
- <!--#include file="security.asp"-->
- <!--#include file="../checkpost.asp"-->
- <!--#include file="inc/function.asp"-->
- <%if session("flag")>1 then
- response.write "<script>alert('您的操作权限不够!');history.back();</script>"
- response.end
- end if
- %>
- <%
- 'on error resume next
- dim special
- dim name
- dim pic
- dim hits
- dim best
- dim special_intro
- dim name_intro
- special=trim(request("special"))
- name=trim(request("name"))
- pic=trim(request("pic"))
- hits=trim(request("hits"))
- best=trim(request("best"))
- special_intro=replace(request("special_intro"),"'","’")
- special_intro=replace(special_intro,">",">")
- special_intro=replace(special_intro,"<","<")
- special_intro=replace(special_intro,vbCrLf,"<br>")
- special_intro=replace(special_intro," "," ")
- name_intro=replace(request("name_intro"),"'","’")
- name_intro=replace(name_intro,">",">")
- name_intro=replace(name_intro,"<","<")
- name_intro=replace(name_intro,vbCrLf,"<br>")
- name_intro=replace(name_intro," "," ")
- set rs=server.createobject("adodb.recordset")
- sql="select * from special"
- rs.open sql,conn,3,3
- rs.addnew
- rs("special")=special
- rs("name")=name
- rs("pic")=pic
- rs("hits")=hits
- rs("best")=best
- rs("special_intro")=special_intro
- rs("name_intro")=name_intro
- rs("addtime")=now()
- rs.update
- rs.close
- set rs=nothing
- conn.close
- set conn=nothing
- response.write"<script>alert('添加成功!');history.back();</Script>"
- %>