treehouse : what would you like to learn today?
Web Design Web Development iOS Development

submit button on form won't show up

  • Can't figure this one out. The submit button won't show up on my contact form. I just pasted the form code into a simple html doc to make things simple.
    http://kyam.ca/kyam06/contactform.html

    <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <form method=\"POST\" id=\"captcha_form\" name=\"captcha_form\" action=\"mailform.php\">

    <div style=\"padding-bottom: 1em;\">From: <br /><input type=\"text\" name=\"email\" id=\"email\" value=\"\">
    </div>
    <div style=\"padding-bottom: 1em;\">Subject: <br /><input type=\"text\" name=\"subject\" id=\"subject\">
    </div>
    <div style=\"padding-bottom: 1em;\">Enter the text contained in the image into the text box:
    <br /><img src=\"captcha.php\" />
    <br /><input type=\"text\" name=\"userpass\" value=\"\">
    </div>
    <div style=\"padding-bottom: 1em;\">Message:
    <br /><textarea name=\"message\" id=\"message\" rows=\"10\" cols=\"60\"><?php echo \"</tex\" . \"tarea>\"; ?>
    <br /><a href=\"http://www.addressmunger.com/contact_form_generator/\" style=\"\">Contact form generator</a>
    </div>

    <div style=\"padding-bottom: 1em;\">
    <input name=\"submit\" type=\"submit\" value=\"Submit\" />
    </div>
    <p>2</p>
    </div>
    </form>
    </body>
    </html>
  • I'm going to hazard a guess and say replace this

    <?php echo \"</tex\" . \"tarea>\"; ?>


    with

    </textarea>


    There should be no PHP in an HTML file
  • Yup that was it... I used a contact form generator http://www.addressmunger.com/contact_form_generator/

    The Code was a total mess... I wonder if there is another contact form generator with captcha.

    Thanks a bunch TT_mark good guesswork