Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2005
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Form help please

    Ok i have NEVER done a feedback form of any sort so some help and advice is really appreciated anyway here is the html:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Contact</title>
    <link rel="stylesheet" media="screen" href="style.css" type="text/css" />
    </head>
    
    <body>
    <div id="whole">
      <div id="banner"></div>
      <div id="navigation"><a href="index.html" title="Home" target="_self">Home</a> | <a href="about.html" title="About Me" target="_self">About Me</a> | <a href="work.html" title="Work" target="_self">Work</a> | <a href="links.html" title="Links" target="_self">Links</a> | <a href="contact.html" title="Contact Me" target="_self">Contact Me</a> </div>
      <div id="h2">
        <h2>Contact Me</h2>
    </div>
    <div id="content">
    <p>If you wish to contact me for any reason at all then please feel free to use this contact page or by clicking my name at the bottom of the page and emailing me and i'll will try my best to email you back as soon as possible.</p>
    <form method="post" action="mailto:myemailaddress?">
    <table>
    <tr>
    <td><label for="fullname">Name:</label></td>
    <td><input type="text" name="fullname" id="fullname" class="txt" /></td>
    </tr>
    <tr>
    <td><label for="email">Email:</label></td>
    <td><input type="text" name="email" id="email" class="txt" /></td>
    </tr>
    <tr>
    <td><label for="email">Email Subject:</label></td>
    <td><select name="email">
    	<option value="information">Site Information</option>
    	<option value="feedback">Feedback</option>
    	<option value="other">Other</option>
    	</select></td>
    </tr>
    <tr>
    <td><label for="textarea">Comment:</label></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><textarea name="textarea" rows="3" cols="30"></textarea></td>
    </tr>
    </table>
    <p><input type="submit" name="btnSubmit" id="btnSubmit" value="Send" /></p>
    </form>
    </div>
    </div>
    </body>
    </html>
    does that look right to you? i carnt find a decent tutorial to help me out especially with the subject selection part!

    if you need my css too let me know

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Change your select to subject along with label. You have used email twice. Does your web host support any type of server side language? The mailto can't be relied on as it opens the users default mail client. Often this isn't setup properly so your form because useless the user then has to take your email address and use another online email system.

  • #3
    New Coder
    Join Date
    Nov 2005
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i think it does to tell the truth i dont know, the contact page isn't actually giong to get used in a life situation at the moment well not untill i get my own hosting This is more for show on my university site for now but in the next few months i will need something similar so people can contact me through the website im going to create

    oh and thanks for pointing the email thing out to me i didnt notice that :|


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •