Website contact email form

Discussion in 'Programming' started by link2swim06, Jan 21, 2009.

  1. #1
    So I am looking for code that will do the following...

    I want your standard contact us form found on websites but I need it to have a space for the users email address. Furthermore the form needs to email me so that my autoreply will email them back.

    It sounds simple but all the forms I see online are not going to send me the form data from the users email address. If anyone know some code to do this you would make my day.

    Also I forgot to say the form is going to be in blogger so if it is php code let me know becuase I have never put php code in blogger.

    Thanks A Ton!!
     
    link2swim06, Jan 21, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    Take a simple form and add this two things
    <input type="text" name="usermail"> between <form> and </form>
    then on headers processing add this
    $headere = "MIME-Version: 1.0\r\n";
    $headere .= "Content-type: text/html; charset=iso-8859-1\r\n";
    $headere .= "From: ".$_POST['usermail']."\r\n";

    goodluck!
     
    crivion, Jan 21, 2009 IP