Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2003
    Posts
    5

    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
    -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>

  2. #2
    Join Date
    Nov 2003
    Location
    Christchurch, New Zealand
    Posts
    1,618
    well I looked at it,.... what did you want to know??

  3. #3
    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?

  4. #4
    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!!!

  5. #5
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •