📄 savenews.asp
字号:
<!--#include file="conn.inc"-->
<html>
<body>
<%
randomize
newsid=100000000+fix(100000000*Rnd)
title=request("title")
text=request("text")
youxq=request("youxq")
sql="select * from exam_news"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
rs.addnew
rs("newsid")=newsid
rs("title")=title
rs("text")=text
rs("youxq")=youxq
rs("fabsj")=date()
rs.update
rs.close
response.cookies("savenews")="ok"
%>
<p> </p>
<p> </p>
<div align="center">
<center>
<table cellspacing="0" style="border-collapse: collapse" bordercolor="#336699" width="480" id="AutoNumber2" cellpadding="0" border="1">
<tr>
<td width="100%" height="25" bgcolor="#6699CC"><b> <font color="#FFFFFF">操作成功</font></b></td>
</tr>
<tr>
<td width="100%" height="160" bgcolor="#EFEFEF">
<p align="center"><font size="2">祝贺您,已经成功发布新闻!</font></td>
</tr>
<tr>
<td width="100%" height="25" bgcolor="#6699CC">
<p align="center">
<input type="button" value="预览新闻" name="B3" class="s02" onclick="window.location='previewnews.asp'"></td>
</tr>
</table>
</center>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -