Making a submit button send to an email address

Discussion in 'HTML & Website Design' started by lisa11792, Sep 7, 2011.

  1. #1
    I have a page set up to volunteer to a political campaign. Everything works except the submit button. How do I code the submit button so it forwards to an email address?
     
    lisa11792, Sep 7, 2011 IP
  2. Revelations-Decoder

    Revelations-Decoder Well-Known Member

    Messages:
    3,028
    Likes Received:
    152
    Best Answers:
    4
    Trophy Points:
    190
    #2
    what just simply?

    If so


    Or along those lines, you know what info you want to see in your subject line in your inbox so write that
     
    Revelations-Decoder, Sep 7, 2011 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    A mailto tag will run the user's email program to send the email. If you want the information on the form emailed directly, submit to a PHP file and use the mail() function to send the data from the form to you. There are thousands of examples on the web.
     
    Rukbat, Sep 7, 2011 IP
  4. asprin

    asprin Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    Do you mean nothing is happening when you click the submit button?
     
    asprin, Sep 7, 2011 IP
  5. xira

    xira Active Member

    Messages:
    315
    Likes Received:
    8
    Best Answers:
    4
    Trophy Points:
    68
    #5
    I think what everyone is asking is, when you click "submit" is this at the end of a form or not?
    If it is at the end of a form, then the code to send an email is in your PHP.
    If this is just a "button" with anchor tags, you can use "mailto:..."
     
    xira, Sep 7, 2011 IP
  6. sieghart

    sieghart Greenhorn

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #6
    <a href="mailto:homer@example.com"><button type="button">Send</button></a>

    I hope this code can help.:)
     
    sieghart, Sep 8, 2011 IP
  7. tonywhite

    tonywhite Peon

    Messages:
    49
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You need php file,
    and the inpu tag
    search in google,
    "php contact form"
     
    tonywhite, Sep 8, 2011 IP