【发布时间】:2011-07-17 14:38:37
【问题描述】:
我从网上拿了一个简单的表格并将其放在网站上用作联系表格,一切都很好,看起来还可以,但是当我提交表格时,我收到了这个错误。 服务器对象错误“ASP 0177:800401f3”
Server.CreateObject 失败
/new/contactusprocess.asp,第 31 行
800401f3
这是代码
<%
Dim error
error = 0
For Each f In Request.Form
If Request.Form(f) = "" Then
error = 1
End If
Next
If error=1 Then
response.redirect "error.html"
Else
Dim f, emsg, mail_to, r, o, c, other
fline = "_______________________________________________________________________"& vbNewLine
hline = vbNewLine & "_____________________________________"& vbNewLine
emsg = ""
For Each f In Request.Form
If mid(f,1,1)<>"S" = True Then 'do not save if input name starts with S
emsg = emsg & f & " = " & Trim(Request.Form(f)) & hline
End If
Next
Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.From = Request("Email Address")
objNewMail.Subject = "Message from contact page (version: 1.0)"
objNewMail.To = mail_to
objNewMail.Body = emsg & fline
objNewMail.Send
Set objNewMail = Nothing
response.redirect "thankyou.html"
End if
%>
提前致谢
【问题讨论】:
标签: forms asp-classic