Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: How do I submit form data to an e-mail address?  (Read 4753 times)

0 Members and 1 Guest are viewing this topic.

infocet

    Topic Starter


    Starter

    How do I submit form data to an e-mail address?
    « on: March 03, 2010, 07:31:54 AM »
    I am trying to submit form data to an e-mail address. Is there a simple way for me to do this?
    I am somewhat new to html & web design but understand the basics.
    Here is my form code, could someone please reply with it properly formatted to receive the input data to an e-mail add. thank you!

    <form style="margin:0" name="myForm" id="myForm">
    <table cellpadding="0" cellspacing="0" border="0" width="470" height="100%">
    <tr><td width="470" height="4" valign="top"><img src="images/a4.jpg" width="470" height="4"></td></tr>
    <tr><td width="470" height="49" valign="top" background="images/a5.jpg"><img src="images/e2.jpg" width="460" height="48" align="top" style="margin:1px 0px 0px 5px "></td></tr>
    <tr><td width="470" height="100%" valign="top" background="images/a5.jpg">
    <table cellpadding="0" cellspacing="0" border="0" width="470" height="100%">
    <tr><td width="470" height="21" valign="top"><img src="images/spacer.gif" width="470" height="21" border="0" alt=""></td></tr>
    <tr><td width="470" height="12" valign="top" style="padding:0px 15px 0px 22px ">
    <strong>First name</strong><strong style="margin-left:168px ">Country</strong>
    </td></tr>
    <tr><td width="470" height="27" valign="top" style="padding:0px 15px 4px 22px ">
    <input type="text" style="width:208px; height:20px; font-size:10px; background-color:#D1CBBE"><input type="text" style="width:208px; height:20px; font-size:10px; margin-left:12px; background-color:#D1CBBE">
    </td></tr>
    <tr><td width="470" height="12" valign="top" style="padding:0px 15px 0px 22px ">
    <strong>Last name</strong><strong style="margin-left:170px ">Zip</strong>
    </td></tr>
    <tr><td width="470" height="27" valign="top" style="padding:0px 15px 4px 22px ">
    <input type="text" style="width:208px; height:20px; font-size:10px; background-color:#D1CBBE"><input type="text" style="width:208px; height:20px; font-size:10px; margin-left:12px; background-color:#D1CBBE">
    </td></tr>
    <tr><td width="470" height="12" valign="top" style="padding:0px 15px 0px 22px ">
    <strong>E-mail</strong><strong style="margin-left:190px ">State</strong>
    </td></tr>
    <tr><td width="470" height="27" valign="top" style="padding:0px 15px 4px 22px ">
    <input type="text" style="width:208px; height:20px; font-size:10px; background-color:#D1CBBE"><input type="text" style="width:208px; height:20px; font-size:10px; margin-left:12px; background-color:#D1CBBE">
    </td></tr>
    <tr><td width="470" height="12" valign="top" style="padding:0px 15px 0px 22px ">
    <strong>Home telephone</strong><strong style="margin-left:140px ">City</strong>
    </td></tr>
    <tr><td width="470" height="27" valign="top" style="padding:0px 15px 4px 22px ">
    <input type="text" style="width:208px; height:20px; font-size:10px; background-color:#D1CBBE"><input type="text" style="width:208px; height:20px; font-size:10px; margin-left:12px; background-color:#D1CBBE">
    </td></tr>
    <tr><td width="470" height="12" valign="top" style="padding:0px 15px 0px 22px ">
    <strong>Working telephone</strong><strong style="margin-left:126px ">Address</strong>
    </td></tr>
    <tr><td width="470" height="27" valign="top" style="padding:0px 15px 4px 22px ">
    <input type="text" style="width:208px; height:20px; font-size:10px; background-color:#D1CBBE"><input type="text" style="width:208px; height:20px; font-size:10px; margin-left:12px; background-color:#D1CBBE">
    </td></tr>
    <tr><td width="470" height="12" valign="top" style="padding:0px 15px 0px 22px ">
    <strong>Fax</strong><strong style="margin-left:203px ">Speciality</strong>
    </td></tr>
    <tr><td width="470" height="27" valign="top" style="padding:0px 15px 4px 22px ">
    <input type="text" style="width:208px; height:20px; font-size:10px; background-color:#D1CBBE"><input type="text" style="width:208px; height:20px; font-size:10px; margin-left:12px; background-color:#D1CBBE">
    </td></tr>
    <tr><td width="470" height="12" valign="top" style="padding:0px 15px 0px 22px ">
    <strong>Message</strong>
    </td></tr>
    <tr><td width="470" height="100%" valign="top" style="padding:0px 15px 21px 22px ">
    <textarea style="width:428px; height:126px; font-size:12px; overflow:auto; background-color:#D1CBBE " class="scroll"></textarea>
    </td></tr>
    </table>
    </td></tr>
    <tr><td width="470" height="23" valign="top" background="images/a5.jpg">
    <table cellpadding="0" cellspacing="0" border="0" width="470" height="100%">
    <tr>
    <td width="299" height="100%" valign="top"><img src="images/e3.jpg" width="290" height="16" align="top" style="margin-left:7px "></td>
    <td width="68" height="100%" valign="top"><input type="reset" value="" style="width:68px; height:16px; background-image: url(images/clear.jpg); border: 0px none; cursor:hand; cursor:pointer"></td>
    <td width="28" height="100%" valign="top"><img src="images/e4.jpg" width="24" height="16" align="top" style="margin-left:2px "></td>
    <td width="75" height="100%" valign="top"><input type="image" src="images/send.jpg" style="margin-left:0px; margin-right:7px "></td>
    </tr>
    </table>
    </td></tr>
    <tr><td width="470" height="4" valign="top"><img src="images/a6.jpg" width="470" height="4"></td></tr>
    </table>
    </form>

    ChrisXPPro



      Adviser

    • Forever Learning
    • Thanked: 4
      • ACB Systems
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows XP
    Re: How do I submit form data to an e-mail address?
    « Reply #1 on: March 03, 2010, 07:39:35 AM »
    No time for a major re write but would suggest you employ a cgi or php approach ....... you can find a simple formmail script thru a web search but - also many hosts now offer a suitable file for use among their extras.

    Your form script may then well start off like ......

    Code: [Select]
    <form action="http://www.yoursite/webformmailer.php" method="post">
          <input type="hidden" name="subject" value="Email Message">
          <input type="hidden" name="redirect" value="thankyou.htm">
    Ain't technology great - until it goes wrong!