www.webdeveloper.com
Results 1 to 4 of 4

Thread: Html code not working !!

  1. #1
    Join Date
    Oct 2006
    Posts
    2

    Angry Html code not working !!

    Bought a HTML template and trying to get the contact page to work but there are not design notes of what to change ... Hope some1 can help.

    It's the contact page that send a email to my account from the web, does any1 know what I need to change or do to make it work and where I must put in my address.

    Thanx

    Below is the code

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Project Management</title>
    <META name="keywords" content="">
    <meta name="description" content="project Management.">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">

    <link href="style.css" rel="stylesheet" type="text/css">
    </head>
    <body style="padding:0; margin:0; background-image:url(images/q2.jpg)" bgcolor="#646D72" >
    <table cellpadding="0" cellspacing="0" border="0" style="width:100%; height:100% ">
    <tr>
    <td valign="top" style="width:100%; " height="703">
    <table cellpadding="0" cellspacing="0" border="0" style="width:100%; ">
    <tr>
    <td valign="top" style="width:50%; background-image:url(images/q1.jpg); background-repeat:repeat-x " height="703">

    </td>
    <td valign="top" width="766" height="703">
    <table cellpadding="0" cellspacing="0" border="0" align="center" width="766">
    <tr>
    <td valign="top" width="766" height="703" >
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td valign="top" width="766" height="103" style="background-image:url(images/top.jpg) "></td>
    </tr>
    <tr>
    <td valign="top" width="766" height="422">
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td valign="top" width="4" height="422"></td>
    <td valign="top" width="7" height="422" bgcolor="#FFFFFF"></td>
    <td valign="top" width="8" height="422" style="background-image:url(images/bg1.gif); background-repeat:no-repeat " bgcolor="#43BAE7"></td>
    <td valign="top" width="225" height="422" bgcolor="#43BAE7">
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td valign="top" width="219" height="422" >
    <div style=" margin-left:0px; margin-top:0px "><img src="images/logo.gif" alt="" border="0"></div>
    <div style=" margin-left:0px; margin-top:0px "><a href="index.html"><img src="images/m1-1.gif" alt="" border="0"></a></div>
    <div style=" margin-left:0px; margin-top:0px "><a href="asbestos-pwall.html"><img src="images/m2.gif" alt="" border="0"></a></div>
    <div style=" margin-left:0px; margin-top:0px "><a href="Project-Management.html"><img src="images/m3.gif" alt="" border="0"></a></div>
    <div style=" margin-left:0px; margin-top:0px "><a href="related-links.html"><img src="images/m4.gif" alt="" border="0"></a></div>
    <div style=" margin-left:0px; margin-top:0px "><a href="Contact-page.html"><img src="images/m5-5.gif" alt="" border="0"></a></div>
    <div style=" margin-left:0px; margin-top:0px "><img src="images/m6.gif" alt="" border="0"></div>
    </td>
    <td valign="top" width="6" height="422" style="background-image:url(images/bg2.jpg); background-repeat:no-repeat " bgcolor="#43BAE7"></td>
    </tr>
    </table>
    </td>
    <td valign="top" width="254" height="422" style="background-image:url(images/bg3.gif); background-repeat:repeat-x " bgcolor="#43BAE7">
    <div style="margin-left:22px; margin-top:11px; " class="o"><img alt="" align="middle" style="margin-right:12px " src="images/1_z2.gif" border="0"><strong>Company directory:</strong></div>
    <div style=" margin-left:22px; margin-top:9px "><img alt="" align="left" style="margin-right:10px "src="images/5_p1.jpg">
    <div style=" margin-left:22px; margin-top:7px; margin-right:25px; line-height:12px " class="w">Surrey, London<br>

    United Kingdom<br>
    Tel:&nbsp;<br>
    Fax:&nbsp;
    </div>
    </div>
    <div style=" margin-left:21px; margin-top:25px "><img src="images/1_line.gif" alt="" border="0"></div>
    <div style="margin-left:22px; margin-top:17px; " class="o"><img alt="" align="middle" style="margin-right:12px " src="images/1_z2.gif" border="0"><strong>Contact form:</strong></div>
    <form action="" style="margin:0; padding:0 " id="form">
    <div style=" margin-left:22px; margin-top:9px; margin-right:25px; line-height:12px " class="w">Your full name:
    </div>
    <div style="margin-left:22px; margin-top:1px;" class="t3"><input style="border-style:solid; width:206px; height:21px; background-color:#34A8D1; border-color:#FFFFFF; border-width:1px " class="w1" type="text"></div>
    <div style=" margin-left:22px; margin-top:1px; margin-right:25px; line-height:12px " class="w">E-mail address:
    </div>
    <div style="margin-left:22px; margin-top:1px;" class="t3"><input style="border-style:solid; width:206px; height:21px; background-color:#34A8D1; border-color:#FFFFFF; border-width:1px " class="w1" type="text"></div>
    <div style=" margin-left:22px; margin-top:1px; margin-right:25px; line-height:12px " class="w">Your message:
    </div>

    <div style="margin-left:22px; margin-top:1px; " class="green"><textarea class="w1" cols="35" rows="35" style="border-style:solid; width:206px; height:131px; background-color:#34A8D1; border-color:#FFFFFF; border-width:1px; overflow:hidden " ></textarea></div>
    <div style="margin-left:147px; margin-top:1px; " class="blue"><img src="images/1_z3.gif" alt="" border="0" style="margin-right:5px "><a href="#" class="o1" onclick="document.getElementById('form').submit()"><strong>clear</strong></a><img alt="" style="margin-right:2px; margin-left:11px " src="images/1_z3.gif" border="0"><a href="#" class="o1" onclick="document.getElementById('form').submit()"><strong style="margin-left:5px ">send</strong></a></div>
    </form>
    </td>
    <td valign="top" width="258" height="422" style="background-image:url(images/p5.jpg); background-repeat:no-repeat " bgcolor="#43BAE7"></td>
    <td valign="top" width="6" height="422" bgcolor="#FFFFFF"></td>
    <td valign="top" width="4" height="422"></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td valign="top" width="766" height="178" style="background-image:url(images/bottom.jpg) ">
    <table cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td valign="top" width="300" height="178">
    <div style=" margin-left:37px; margin-top:36px; margin-right:5px; line-height:13px " class="s">Copyright &copy;2006. <a href="Privacy-policy.html" class="s">Privacy policy.</a></div>
    </td>
    <td valign="top" width="466" height="178">
    <div style=" margin-left:268px; margin-top:10px "><img src="images/z1.gif" alt="" border="0"></div>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </td>
    <td valign="top" style="width:50%; background-image:url(images/q1.jpg); background-repeat:repeat-x " height="703">
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td valign="top" style="width:100%; height:100%; background-image:url(images/q2.jpg) "></td>
    </tr>
    </table>

    </body>
    </html>

  2. #2
    Join Date
    Oct 2006
    Location
    Lancashire, UK
    Posts
    281
    First I suggest you complain to the people you bought the template from. It is unprofessional and not user friendly to sell you something that doenst have support in for customising.

    second, you want you put your address in here:
    <form action="mailto:-YOUR EMAIL ADDRESS HERE-" method="post" style="margin:0; padding:0 " id="form">


    you need to add in the method="post" as well. That should work, but i have never been a wiz with forms.

  3. #3
    Join Date
    Oct 2006
    Posts
    2
    Thanx abz,

    Yip I complained for sure and sent a complain to the general standards board, selling something without comments in the design code is Bull@$"

    I put in what u said and played around with it but it opens up my outlook which is shouldn't, it should send from the web page

  4. #4
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    Quote Originally Posted by Leoslat3r
    ...
    I put in what u said and played around with it but it opens up my outlook which is shouldn't, it should send from the web page
    Then you'll need to change the action to point to a server side page (.asp, .aspx, .php, .jsp, etc.) that can process the information and send it to your mail service.
    54 68 65 42 65 61 72 4D 61 79

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles