Thread: Contact Form

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    1
    Rep Power
    0

    Contact Form


    Hi All, I am new to using forums and web design, I have been creating a website with contact form, but I am unable to get the buttons on the form to work, this is the coding I have:

    <div align="centre"><br />
    <br />
    First name <input type="text" name="First Name" form="First Name"

    required="required" size="20" maxlength="20" /><br />
    <br />
    Surname <input type="text" name="Surname" form="Surname"

    required="required" size="20" maxlength="20" autocomplete="on" /><br />
    <br />
    Daytime Contact Number <input type="tel" name="Number"

    form="Number" size="20" maxlength="20" required="required"

    autocomplete="on" /><br />
    <br />
    Email Address <input type="email" name="email" form="email"

    required="required" size="30" maxlength="30" autocomplete="on" /><br />
    <br />
    Preferred Contact Method<br />
    <br />
    <input type="checkbox" name="phone" form="phone" />Phone<br />
    <input type="checkbox" name="email" form="email" />Email<br />
    <br />
    Comments<br />
    <textarea name="comments" form="comments" required="required"

    maxlength="200"></textarea><br />
    </div>
    <br />
    <div align="center"><input type="submit" name="Submit" formaction="Submit"

    formmethod="post" formenctype="text/plain" formtarget="email@address" /><input

    type="reset" name="Reset" value="Reset Form" form="Reset" /><br />

    Can anyone suggest why it is not working?

    Thanks
  2. #2
  3. No Profile Picture
    Lost in code
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 2004
    Posts
    8,316
    Rep Power
    7170
    HTML by itself is not capable of sending email; you need to combine it with a server language of your choice that is.
    PHP FAQ

    Originally Posted by Spad
    Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

IMN logo majestic logo threadwatch logo seochat tools logo