If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Check My Code Plzzzzzz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-27-04, 10:55
VJT2 VJT2 is offline
Registered User
 
Join Date: Sep 2003
Posts: 5
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
-vince

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<%
Dim objMail

'//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 = "jimmyt@filmthebible.org"
objMail.Body = BodyString
objMail.Send
Set objMail = nothing

'Response.Write("We have received your information request, we will be mailing it to you shortly. Thank you!")
End If
%>
</body>
</html>
Reply With Quote
  #2 (permalink)  
Old 03-28-04, 17:50
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
well I looked at it,.... what did you want to know??
Reply With Quote
  #3 (permalink)  
Old 03-29-04, 03:17
pas pas is offline
Registered User
 
Join Date: Mar 2004
Location: Italy
Posts: 2
Cool Re: Check My Code Plzzzzzz

Well, I went through your code. What's wrong in it?
Reply With Quote
  #4 (permalink)  
Old 04-15-04, 06:48
fairdooes fairdooes is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
it's the top line:

<%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%>

leave it as default vbscript...

cos all you code is written in vb or you could change your code to jscript syntax!!!
Reply With Quote
  #5 (permalink)  
Old 04-15-04, 07:01
pas pas is offline
Registered User
 
Join Date: Mar 2004
Location: Italy
Posts: 2
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

Pas
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On