HTML Form Help

Discussion in 'HTML & Website Design' started by Scott McC, May 27, 2008.

  1. #1
    I'm adding an HTML form to my site, this is the first time I've done this. I've already created the code, and was wondering how I do 2 things.

    The first is how do I send it to my email address when a visitor clicks on the submit button?

    The second is how do I get it to go back to the home page automaticaly after the visitor submits the form?

    I have included the HTML code....just in case you need it.

    <html>
    <head>
    <TITLE>Fiction Zone</TITLE>
    </head>

    <body background="http://i304.photobucket.com/albums/nn188/Album_For_Sites/grim_reaper_pointing.jpg" link="blue" alink="blue" vlink="blue">
    <center>

    <font size="50" color="white">Fiction Zone</font>
    <p class="olive" ><marquee direction="left" scrollamount="3"><font color="white">Finding new and great writers</font></marquee></p>

    <table border="0" cellpadding="0" cellspacing="0" width="693">
    <tr>
    </tr>

    <tr>
    <td bgcolor="black" colspan=3>
    </tr>
    <tr>
    <td bgcolor="black" colspan=3><font color="red">
    Navigation:
    <a href="http://www.fictionzone.freemegs.net/"><font color="red">Home</font></a> |
    <a href="http://www.fictionzone.freemegs.net/mystories.html"><font color="red">My Stories</font></a> |
    <a href="http://www.fictionzone.freemegs.net/mypoems.html"><font color="red">My Poems</font></a> |
    <a href="http://app.formassembly.com/forms/view/18626"><font color="red">Submit Your Work</font></a> |
    <a href="http://www.fictionzone.freemegs.net/submittedstories.html"><font color="red">Submitted Stories</font></a> |
    <a href="http://www.fictionzone.freemegs.net/submittedpoems.html"><font color="red">Submitted Poems</font></a> |
    <a href="http://www.fictionzone.freemegs.net/myfavouriteauthors.html"><font color="red">My Favourite Authors</font></a> |
    <a href="http://fiction-zone.blogspot.com/"><font color="red">Blog</font></a> |
    <a href="http://users2.smartgb.com/g/g.php?a=s&i=g25-27626-25"><font color="red">Guestbook</font></a> |
    <a href="http://app.formassembly.com/forms/view/18624"><font color="red">Contact Us</font></a> |
    </font><br><br></td>
    </tr>

    <td bgcolor="black" colspan=3>
    </tr>
    <tr>
    <td bgcolor="black" colspan=3><font color="red">
    Links:
    <a href="http://www.freewebs.com/nvhmag1/"><font color="red">NVH Magazine</font></a> |
    </font><br><br></td>
    </tr>

    <tr>
    <td bgcolor="#FFFFFF" colspan=3><center>
    <table border="1" cellpadding="5" cellspacing="0" width="100%" bordercolor="black">
    <tr>
    <td width="100%"><p align="center"><font size="5" face="Tahoma"><strong>Submissions</strong></font></p>

    <p>To submit you work please fill out the form below.</p>
    <p><form>

    Name:
    <input type="text" name="name" size="30"> Pseudonyms accepted.

    <p>Email:
    <input type="text" name="email" size="30"> If you want to be told when work is posted.</p>

    <p>Website:
    <input type="text" name="website" size="35"> If you want a link created from your name to your site.</p>

    <p>Title:
    <input type="text" name="title" size="25"></p>

    <p>Short Description:</p>
    <textarea rows="10" cols="30">
    Add a short description here.
    </textarea>

    <p>Your Work</p>
    <textarea rows="20" cols="60">
    </textarea>

    <p><center><input type="button" value="Submit"></center></p>


    </td>
    </tr>
    </table>
    </center></td>

    </tr>
    </table>
    </center>
    <p align="center"><font color="white" face=arial size=1>Writers retain all rights to thier work.</font></p>
    </body>
    </html>

    Currently I'm using a form that I created from a site that creates the form for you, but I would like to use my own form, as the design of the one the site created doesn't fit with my site design, so any help you can give would be great.
     
    Scott McC, May 27, 2008 IP
  2. Evan B.

    Evan B. Peon

    Messages:
    118
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    do you have a website up yet?
     
    Evan B., May 27, 2008 IP
  3. itcn

    itcn Well-Known Member

    Messages:
    795
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    118
    #3
    You need to have an action for your form, for example a PHP or .NET page to process the form. Here is a free PHP contact form processor:
    Generic All Purpose PHP Contact Form Submitter

    You can add any html field you want to it and it will automatically parse all the input fields in your form and email it to you.
     
    itcn, May 27, 2008 IP
  4. Scott McC

    Scott McC Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yea I have a website you can get to it by this link http://www.freewebs.freemegs.net
     
    Scott McC, May 28, 2008 IP
  5. Scott McC

    Scott McC Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thx alot itcn it sounds good, I'll give it a try.
     
    Scott McC, May 28, 2008 IP