var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: Check My Code Plzzzzzz
can someone plz check this code....i am sending an email to the web admin (me) from an input response form using CDONTs.......plz check
TY in advance
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
'//Rename this to the name of your button
If (Request.Form("Submit") <> "") Then
Set objMail = Server.CreateObject("CDONTS.NewMail")
'Collecting form information
email = Request.Form("Email")
name = Request.Form("Name")
phone = Request.Form("Phone")
address = Request.Form("Address")
city = Request.Form("city")
state = Request.Form("state")
zipcode = Request.Form("zip")
comments = Request.Form("Comments")
'Build message body
BodyString = BodyString & "The following response was given via the Pastors' Response Page" & VbCrLf
BodyString = BodyString & "Email: = " & Email & VbCrLf
BodyString = BodyString & "Name: = " & Name & VbCrLf
BodyString = BodyString & "Phone: = " & Phone & VbCrLf
BodyString = BodyString & "Address: = " & Address & VbCrLf
BodyString = BodyString & "City: = " & city & VbCrLf
BodyString = BodyString & "State: = " & state & VbCrLf
BodyString = BodyString & "Zip Code: = " & zip & VbCrLf
BodyString = BodyString & "Comments" & Comments & VbCrLf
objMail.From = email
objMail.Subject = "Pastors' Reply"
objMail.To = "email@example.com"
objMail.Body = BodyString
Set objMail = nothing
'Response.Write("We have received your information request, we will be mailing it to you shortly. Thank you!")
well I looked at it,.... what did you want to know??
Re: Check My Code Plzzzzzz
Well, I went through your code. What's wrong in it?
it's the top line:
leave it as default vbscript...
cos all you code is written in vb or you could change your code to jscript syntax!!!
Fairdooes you are more than right, of course!
As usual, the more the mistake is visible, the more it's difficult to spot it :-)
Greetings from Rome