Need help on contact form

Discussion in 'HTML & Website Design' started by puretalk, Apr 24, 2011.

  1. #1
    Dear wll webmasters

    Need help on my contact form, can someone help me to take a look at the codes, why the submit button not working?

    Thank you so much

     
    Last edited: Apr 24, 2011
    puretalk, Apr 24, 2011 IP
  2. dreteh

    dreteh Member

    Messages:
    514
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #2
    I don't see <form></form> in your code.

    Submit button needs to be within a form tag.
     
    dreteh, Apr 24, 2011 IP
  3. puretalk

    puretalk Active Member

    Messages:
    607
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    hi dreteh

    Thanks for help, by the way, where should i add in the <form></form> in the codes?

    Thanks alot
     
    puretalk, Apr 24, 2011 IP
  4. MH-Stefan

    MH-Stefan Active Member

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #4
    Start the form tag at line 191 and end it at line 254.

    <form method="post" action="URL-TO-CONTACT.php">
    
    </form>
    Code (markup):
    Just as an off-topic side note, your code is a total mess. You should use div containers instead of tables, refrain from using deprecated tag properties and put the styles in a CSS and use id's and classes. There are many other things you could improve, but these are the most important.
     
    MH-Stefan, Apr 24, 2011 IP
  5. dreteh

    dreteh Member

    Messages:
    514
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    33
    #5
    Basically you can put your form tag anywhere within the body tag as long as all your input tags are surrounded by your form tag.
    I have to agree with MH-Stefan that your code is messy =)
    Here is a good sample and tutorial:
    http://www.w3schools.com/html/html_forms.asp
     
    dreteh, Apr 24, 2011 IP
  6. puretalk

    puretalk Active Member

    Messages:
    607
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #6
    Hi Stefan

    Thank you so much for your reply, looks like i do not hv the URL-TO-CONTACT.php file too, any chance to get help for this? thank alot
     
    puretalk, Apr 27, 2011 IP
  7. MH-Stefan

    MH-Stefan Active Member

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #7
    That was just an example. You need a script that will process the form (send the submissions somewhere). I've found a tutorial here that shows you how to setup a contact form. You can find more tutorials at Pixel2Life.
     
    Last edited: Apr 28, 2011
    MH-Stefan, Apr 28, 2011 IP
  8. Dineshjal

    Dineshjal Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    hiii

    you have missed the tag
    <form method="Get/Post" action="">
    </form>

    use this and this will work..
     
    Dineshjal, Jan 28, 2012 IP