日期:2011-08-27 浏览次数:20814 次
<textarea name="textarea"></textarea>
<input type="hidden" name="content" value="">
<iframe ID="eWebEditor1" src="ewebeditor/ewebeditor.htm?id=content&style=coolblue" frameborder="0" scrolling="no" width="600" HEIGHT="350"></iframe>
<!--#include file="../conn/conn.asp"-->
<%
set rs=server.CreateObject("adodb.recordset")
sqlstar="select * from news where news_title='"&request.form("news_title")&"'"
rs.open sqlstar,conn,1,3
if rs.eof or rs.bof then
rs.addnew
rs("news_title")=request.form("news_title")
rs("news_date")=request.form("news_date")
rs("news_user")=session("user_name")
rs("content")=request("content")
rs.update
response.Write"<script>alert('添加成功!');this.location.href='news_add.asp';</script>"
else
response.Write"<script>alert('此新闻已经添加过了!');this.history.go(-1);</script>"
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>