%
Dim action,cg_sql,cg_rs
action=request.QueryString("action")
On Error Resume Next
If Not IsObject(cg_conn) Then Call cg_OpenConn("")
If action="save" Then
Dim name,comane,somane,tel,fox,email,title,content
name = shownone(request.Form("name"))
comane = shownone(request.Form("comane"))
somane = shownone(request.Form("somane"))
tel = shownone(request.Form("tel"))
fox = shownone(request.Form("fox"))
email = shownone(request.Form("email"))
title = shownone(request.Form("title"))
content = shownone(request.Form("content"))
If name="" Or tel="" Or title="" Or content="" Then
response.write ""
response.write ""
response.end
End If
cg_sql = "Insert into [SH_Msg] (Name,Comane,Somane,Phone,Fox,Email,Title,Content)values('"& name &"','"& comane &"','"& somane &"','"& tel &"','"& fox &"','"& email &"','"& title &"','"& content &"')"
cg_conn.execute(cg_sql)
If Not Err Then
response.write ""
response.write ""
response.End
Else
response.write ""
response.write ""
response.End
End If
End If
Function shownone(str)
If isnull(str) Or trim(str)="" Then
shownone=""
Exit Function
End If
str=server.htmlencode(Trim(str))
str=Replace(str,vbnewline,"
")
str=Replace(str," "," ")
shownone=Replace(str,"'","''")
End Function
%>
![]() |
![]() |
|
||
電話:021-56327980 56327586 傳真:021-56327586 郵箱:bocai178@126.com 上海博才科教設備有限公司版權所有 |