?? save.asp
字號:
?<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="conn.asp"-->
<%response.buffer=true%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%
shijian=request("shijian")
title=request("title")
text=request("text")
if shijian="" then response.redirect "add.asp"
if title="" then response.redirect "add.asp"
if text="" then response.redirect "add.asp"
set rs=Server.CreateObject("ADODB.Recordset")
rsstr="select * from [notice] order by ID desc"
rs.open rsstr,conn,1,2
rs.addnew
if shijian<>"" then rs("time")=shijian
if title<>"" then rs("title")=title
if text<>"" then rs("text")=text
rs.update
conn.close
set conn=nothing
%>
<wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
<meta http-equiv="Cache-Control" content="max-age=0"/>
</head>
<card title="發布公告" ontimer="index.asp">
<timer value="20"/>
<p>發表成功,<br/>
正在返回公告首頁!<br/>
- - - - - -<br/>
<a href="index.asp">[公告首頁]</a><br/>
<a href="..">[網站首頁]</a><br/>
</p>
</card>
</wml>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -