SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    feedback.asp to feedback.php

    I am tired of paying high hosting cost due to only two asp file on the whole website. I used these asp files to send mail from form.

    Here is the code. Is there a way I can turn the functionality part of this code into php or some cgi format. Please suggest.

    Thanks

    feedback.asp
    ==========
    <%Response.Buffer=True%>
    <!--#Include File="ADOVBS.INC"-->
    <%
    %>
    <%

    URL = "join.htm"
    If Request.Form("vEmail") <> "" Then
    REMAIL = Request.Form("vEmail")
    Else
    REMAIL = "TO2004@aol.com"
    End If


    Set objMsg = Server.CreateObject("CDONTS.NewMail")

    'strBody = strBody & "CID: " & Request.Form("CID") & chr(13)
    strBody = strBody & "Business Name: " & Request.Form("vbName") & chr(13)
    strBody = strBody & "Owners Name: " & Request.Form("vOwnersName") & chr(13)
    strBody = strBody & "Contact: " & Request.Form("vContact") & chr(13)
    strBody = strBody & "Address: " & Request.Form("vAddress") & chr(13)
    strBody = strBody & "City: " & Request.Form("vcity") & chr(13)
    strBody = strBody & "State: " & Request.Form("vState") & chr(13)
    strBody = strBody & "Zip Code: " & Request.Form("vZip") & chr(13)
    strBody = strBody & "Local Phone: " & Request.Form("vPhone") & chr(13)
    strBody = strBody & "Toll free: " & Request.Form("vtollfree") & chr(13)
    strBody = strBody & "Website: " & Request.Form("vwebsite") & chr(13)
    strBody = strBody & "E-Mail: " & Request.Form("vemail") & chr(13)
    objMsg.From = REMAIL
    objMsg.Subject = "Phonaflower New Membership Form " & COMPANY
    objMsg.Body = strBody
    objMsg.To = "doran_doran@yahoo.com"
    objMsg.Send

    Set objMsg = nothing
    Response.Redirect("thankyou.asp")
    %>



    join.htm file used feedback.asp to send me info from website form.

    <form method="post" action="feedback.asp">

  2. #2
    Visit docquesting.com docquesting's Avatar
    Join Date
    May 2005
    Location
    Georgia USA
    Posts
    1,264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look up matts formail php script. It should handle most everything you need to do. Replace his script with your current code. You will need to link your html form code to the script of course.

    Edit. Just a helpful tip whenever you post code make sure to replace private info with fake. Examples are your email mail@domain.com and domain.com/whatever if any. Otherwise any bots that see it will attempt to spam you. Or if you need to post your email use mail at domain dot com.

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    are you referring to this link http://www.scriptarchive.com/formmail.html if yes, then the link is too old. I really want something new just like my original feedback.asp .

  4. #4
    Visit docquesting.com docquesting's Avatar
    Join Date
    May 2005
    Location
    Georgia USA
    Posts
    1,264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm cannot really help you so far my current suggestions and one more. You may want post in looking to hire and have a php coder replicate what you have now in php. I apologize for not knowing enough to help you further. You could try to locate another script that does the same as the above link. Just search for form mailer code or online form mail generator ect.

  5. #5
    SitePoint Zealot
    Join Date
    Aug 2006
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cool. thanks for all the tips.

  6. #6
    SitePoint Zealot
    Join Date
    Aug 2006
    Location
    NY, USA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should be able to do this with PHP's SendMail function.

    Also, how much are you paying for hosting?


Bookmarks

Posting Permissions

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