How do i create a Contact Form in HTML / CSS?

Discussion in 'HTML & Website Design' started by Isak Hejnesen, Mar 9, 2013.

  1. #1
    Hi there. I am currently working on a website. And on the contacts page i want there to be a form on it that you can directly send me a email from the page to my mail.

    I want the to be like 3 message boxes one with their mail, and one with the topic of the mail. and the last one with the message then a simpel send button.

    If any one knows how to do that please past a code in the comments or explain it to me some how. thank you :)
     
    Isak Hejnesen, Mar 9, 2013 IP
  2. abyse

    abyse Notable Member

    Messages:
    346
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    245
    #2
    as far as I know... you cannot do this in html/css
    you will need a host with php
     
    abyse, Mar 9, 2013 IP
  3. Isak Hejnesen

    Isak Hejnesen Greenhorn

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Damnit, cant i just make a text box that is linked to my email some how?
     
    Isak Hejnesen, Mar 9, 2013 IP
  4. abyse

    abyse Notable Member

    Messages:
    346
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    245
    #4
    are you sure that your host doesn't have php enabled ?
     
    abyse, Mar 9, 2013 IP
  5. Isak Hejnesen

    Isak Hejnesen Greenhorn

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #5
    i dont know php yet :)
     
    Isak Hejnesen, Mar 9, 2013 IP
  6. AlbCoder

    AlbCoder Well-Known Member

    Messages:
    126
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    163
    #6
    you have ready free contact forms on google.
    one of them http://www.ericmmartin.com/projects/smcf/
     
    AlbCoder, Mar 9, 2013 IP
  7. Isak Hejnesen

    Isak Hejnesen Greenhorn

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #7
    thank you but i was wondering if there isnt a way to do it using only HTML5
     
    Isak Hejnesen, Mar 9, 2013 IP
  8. throughnathan

    throughnathan Active Member

    Messages:
    151
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #8
    You can setup an email link " <a href"your email here">Text</a> " but this will just open the email client on the computer
     
    throughnathan, Mar 9, 2013 IP
  9. Isak Hejnesen

    Isak Hejnesen Greenhorn

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #9
    hmm ok, i will try it out thx
     
    Isak Hejnesen, Mar 9, 2013 IP
  10. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #10
    You can make the FORM in HTML/CSS, but as others have said for it to actually send a mail you'll need server-side scripting to send the form data TO -- PHP is the easiest (IMHO) but the various flavors of ASP, or other languages like PERL, PYTHON or RUBY could also be leveraged to do this.

    FORM's are useless without something on the server to process the data from it.
     
    deathshadow, Mar 9, 2013 IP
  11. Isak Hejnesen

    Isak Hejnesen Greenhorn

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #11
    okay, i will do that then :)
     
    Isak Hejnesen, Mar 9, 2013 IP