Hi, I need a free script for a Contact Us form on my website

Discussion in 'HTML & Website Design' started by TheCrusader, Oct 25, 2008.

  1. #1
    Hi, I need a free script or method to put a "Contact Us" form on my website.

    Basically, user with queries will input his/her name, email address, and message. It will then be sent to my email address.

    Any idea where and how to implement it on my website?

    Your advice is appreciated.
     
    TheCrusader, Oct 25, 2008 IP
  2. cheechboy4200

    cheechboy4200 Banned

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    www(dot)emailmeform(dot)com/ has a good one. What are you looking for? HTML, PHP,etc??
     
    cheechboy4200, Oct 25, 2008 IP
  3. iwtmmo

    iwtmmo Active Member

    Messages:
    832
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Contact Form:
    =======================================
    <form action="send.php" method="post">
    E-mail Address: <input type="text" name="emailaddr" size="30" /><br>
    Your Name: <input type="text" name="your_name" size="30" /><br>
    Your Message: <textarea name="message" cols="50" rows="5"></textarea><br>
    <input name="submit" type="submit" value="Send" />
    </form>

    Email Send Out Script "send.php":
    ======================================
    <?
    $emailaddr = $_POST['emailaddr'];
    $name = $_POST['your_name'];
    $txt_message = $_POST['message'];
    $to = "your email address";

    $send_html = "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body bgcolor=\"#C5E6EE\"><center><table width=\"40%\" bgcolor=\"white\" style=\"border: 3px #40ACC7 solid\"><tr><td width=\"100%\" height=\"80\" align=\"center\" style=\"font-size:12px; font-family: Arial;\">%%message%%</td></tr></table></center></body></html>";

    if ($name == "" || $emailaddr == "" || $txt_message =="")
    {
    $message = "You must complete the form. Please go back and do so.";
    }
    else
    {
    $subject = "Subject"; //email subjuct
    $msg = "$name ($emailaddr),\r\n\r\$txt_message"; //email body content

    $emailheaders="From: $emailaddr\nReply-to: $emailaddr";

    $msg = wordwrap($msg, 70);

    $suc = mail($to, $subject , $msg, $emailheaders);

    if ($suc)
    {
    $message = "Sent the link to ".$to;
    }
    else
    {
    $message = "<br />Error: The email could not be sent. ";
    }
    }
    $send_html = str_replace("%%message%%", $message, $send_html);
    echo $send_html;
    exit;
    ?>
     
    iwtmmo, Oct 25, 2008 IP
  4. amazingserviceprovider

    amazingserviceprovider Peon

    Messages:
    395
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    iwtmo, thanks. it worked. but some error is occuring,
     
    amazingserviceprovider, Oct 25, 2008 IP
  5. bobbym

    bobbym Well-Known Member

    Messages:
    1,007
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    128
    #5
    Thank you for sharing
     
    bobbym, Oct 25, 2008 IP
  6. adzeds

    adzeds Well-Known Member

    Messages:
    1,209
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    100
    #6
    adzeds, Oct 26, 2008 IP
  7. TheCrusader

    TheCrusader Peon

    Messages:
    225
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yes adzeds, this is exactly what I need
     
    TheCrusader, Oct 26, 2008 IP
  8. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #8
    Search google for php+formmail or perl+formmail to obtain the working and sample form in the programming language of your choice. :)
    whats the error that you are encountering.
     
    maestria, Oct 28, 2008 IP
  9. kp_mastermind

    kp_mastermind Active Member

    Messages:
    885
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    58
    #9
    I can provide one in php+html.mailing script.which uses server mail.
     
    kp_mastermind, Oct 29, 2008 IP
  10. ms2134

    ms2134 Well-Known Member

    Messages:
    1,188
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    165
    #10
    ms2134, Oct 29, 2008 IP
  11. blue_angel

    blue_angel Well-Known Member

    Messages:
    1,174
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    130
    #11
    look at hotscripts.com there are so many..... free
     
    blue_angel, Oct 29, 2008 IP
  12. websushil

    websushil Active Member

    Messages:
    137
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #12
    I have an .asp contact us form. I think it is pretty cool. You can use it if you are using asp.
    http://www.qualclosets.com/requestmenu.h...
    This then sends the info to the asp file which then will email you or whomever you want.

    you can try the <form mail...> bit or whatever that is, but I have read that it is not very reliable. I have never tried it myself but...
    If you are using asp, feel free.
     
    websushil, Oct 30, 2008 IP