vihovde Skrevet 22. januar 2007 Skrevet 22. januar 2007 Har kjøpt meg ett design på nettet, men har litt problemer med å finne ut hvordan jeg skal få dette "send skjema" til å virke? Noen som kan ta en titt å si hva jeg må endre på? Er ikke så mye inni dette, så ta det litt rolig Her er koden: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Untitled</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link href="style.css" rel="stylesheet" type="text/css"> <script type="text/JavaScript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> </head> <body onLoad="MM_preloadImages('images/m1-1.gif','images/m2-2.gif','images/m3-3.gif','images/m4-4.gif','images/m5.gif')"> <table cellpadding="0" cellspacing="0" border="0" align="center" style="width:766px; height:800px"> <tr> <td valign="top" width="766" height="378" style="background:url(images/top.jpg)"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top" width="766" height="307"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top" width="504" height="307"> <a href="index.htnl"><img src="images/logo.gif" style="margin-left:44px" alt="" border="0"></a> </td> <td valign="top" width="262" height="307" class="header"> <div style="margin:49 0 0 29px "> <a href="index.html">home</a><img alt="" src="images/spacer.gif" width="45" height="1"><a href="#">sitemap</a><img alt="" src="images/spacer.gif" width="38" height="1"><a href="#">mailus</a> </div> </td> </tr> </table> </td> </tr> <tr> <td valign="top" width="766" height="71"> <a href="index-1.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image17','','images/m1-1.gif',1)"><img alt="" src="images/m1.gif" name="Image17" width="101" style="margin-left:52px" height="33" border="0"></a><a href="index-2.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image18','','images/m2-2.gif',1)"><img style="margin-left:39px" alt="" src="images/m2.gif" name="Image18" width="101" height="33" border="0"></a><a href="index-3.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image19','','images/m3-3.gif',1)"><img style="margin-left:39px" alt="" src="images/m3.gif" name="Image19" width="101" height="33" border="0"></a><a href="index-4.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image20','','images/m4-4.gif',1)"><img style="margin-left:39px" alt="" src="images/m4.gif" name="Image20" width="101" height="33" border="0"></a><a href="index-5.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image21','','images/m5-5.gif',1)"><img style="margin-left:39px" alt="" src="images/m5.gif" name="Image21" width="101" height="33" border="0"></a> </td> </tr> </table> </td> </tr> <tr> <td valign="top" width="766" height="307" style="background-image:url(images/1_bg.gif)"> <table cellpadding="0" cellspacing="0" border="0" style="background:url(images/1_bg1.gif) no-repeat top"> <tr> <td valign="top" width="766" height="307" style="background:url(images/1_bg2.gif) no-repeat bottom" class="content"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top" width="70" height="307"></td> <td valign="top" width="625" height="307"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td valign="top" width="231" height="307"> <div style="margin:33 0 10 7px "> <img src="images/6_w1.gif" style="margin-bottom:21px; margin-left:-7px" alt="" border="0"><br> <img src="images/6_p1.jpg" alt="" border="0"><br> <br style="line-height:13px"> <b>The Company Name Inc.</b> <br> 8901 Marmora Road,<br> Glasgow, D04 89GR.<br> <br style="line-height:15px"> Freephone: +1 800 559 6580<br> Telephone: +1 959 603 6035<br> FAX: +1 101 889 9898 </div> </td> <td valign="top" width="230" height="307"> <div style="margin:33 40 0 7px "> <img src="images/6_w2.gif" style="margin-bottom:20px; margin-left:-7px" alt="" border="0"><br> <b>Customer Service:</b><br> Telephone: +1 959 603 6035<br> FAX: +1 101 889 9898<br> E-mail: <a href="#">[email protected]</a><br> <br style="line-height:13px"> <b>Sales department:</b><br> Telephone: +1 959 603 6035<br> FAX: +1 101 889 9898<br> E-mail: <a href="#">[email protected]</a><br> <br style="line-height:13px"> <b>Web site questions:</b><br> Telephone: +1 959 603 6035<br> FAX: +1 101 889 9898<br> E-mail: <a href="#">[email protected]</a> </div> </td> <td valign="top" width="164" height="307" class="block2"> <img src="images/6_w3.gif" style="margin-top:33px" alt="" border="0"> <form action="" id="form" style="margin:0; padding:0 "> <div style="margin:20 0 0 7px "> <input type="text" style=" width:158px; height:20px;" value="Name:"><br> <br style="line-height:5px "> <input type="text" style=" width:158px; height:20px;" value="E-mail:"><br> <br style="line-height:5px "> <textarea name="textarea" cols="35" rows="35" style=" width:158px; height:102px; overflow:hidden ">Message:</textarea><br> <br style="line-height:11px "> <img src="images/1_z1.gif" style="margin-right:9px; margin-left:57px " alt="" border="0"><a href="#" onClick="document.getElementById('form').reset()">clear</a><img src="images/1_z1.gif" style="margin-right:9px; margin-left:15px " alt="" border="0"><a href="#" onclick="document.getElementById('form').submit()">send</a></div></form> </td> </tr> </table> </td> <td valign="top" width="71" height="307"></td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td valign="top" width="766" height="115" class="footer"> <div style="margin:45 0 0 31px "> Copyright © Companyname 2007. <a href="index-6.html">Privacy Policy</a> </div> </td> </tr> </table> </body> </html>
Ståle Skrevet 22. januar 2007 Skrevet 22. januar 2007 Du må vel legge til et PHP sendmail script. Post heller i PHP forumet. Tror den koden der er bare for å demonstrere.
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå