asp变量出错 代码如下 jmail发信 emailTxt如何改
dim ip,rs,sql,book_title,book_name,book_name1,book_email,book_tel,book_qq,book_address,VerifyCode,ssfl,JMail,emailTxtset rs=server.createobject("adodb.recordset")
sql="select * from book"
rs.open sql,conn,1,3
ssfl=request.form("ssfl") '类别
book_title=Checkxss(trim(request.form("book_title"))) '标题
gbook_sh=trim(request.form("gbook_sh")) '
book_name=Checkxss(trim(request.form("book_name"))) '责任人
book_name1=Checkxss(trim(request.form("book_name1"))) '公司名称
book_email=trim(request.form("book_email")) '邮件地址
book_tel=trim(request.form("book_tel")) ' 电话号码
book_qq=trim(request.form("book_qq")) 'QQ号码
yc_email=request.form("yc_email") '电话号码
yc_qq=request.form("yc_qq") 'QQ号码
book_address=Checkxss(trim(request.form("book_address"))) '地址
book_body=Checkxss(trim(request.form("book_body"))) '留言正文
VerifyCode=request.form("VerifyCode") '验证玛
ip=request.servervariables("remote_addr") ' IP地址
emailTxt="<html><head><META content=zh-cn http-equiv=Content-Language><meta http-equiv=""Content-Type"" content=""text/html; charset=gb2312""></head><body>你好!<br>网站有新留言<br>留言者:<%=book_name%><br>公司名称:<% =book_name1 %><br> 联系电话:<% =book_tel %> 邮箱地址:<% =book_email %><br>留言内容:<% =book_body %><br>此处省略5000字</body></html>" '邮件的内容
已处理OK
[ 本帖最后由 水风青木 于 2015-1-14 17:11 编辑 ]