?? addnewschk.asp
字號(hào):
<!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim sql
dim rs
dim biaoti
dim neirong
if request("biaoti")="" then
response.write "請(qǐng)輸入新聞標(biāo)題!"
response.end
else
biaoti=request("biaoti")
end if
if request("neirong")="" then
response.write "請(qǐng)輸入新聞內(nèi)容!"
response.end
else
neirong=request("neirong")
end if
set rs=server.createobject("adodb.recordset")
sql="select * from [news]"
rs.open sql,conn,1,3
rs.addnew
rs("biaoti")=biaoti
rs("neirong")=neirong
rs("data")=now()
rs.update
rs.close
conn.close
set rs=nothing
set conn=nothing
%>
<meta http-equiv="Content-Language" content="zh-cn">
<LINK href="img/jobcn.css" rel=stylesheet></LINK>
<p align="center">增加行業(yè)新聞 <a href="addnews.asp">返回</a></p>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -