marcusuav Posted May 22, 2008 Share Posted May 22, 2008 I am new to this forum as well as to php programming, and I am wondering if you can answer me this basic question, where do I stick this form to e-mail code in my website to make it work? I tried it in many different places, but the form will never display on my website. If I open a new blank page, it shows up just fine if I stick it in the body. The webpage I am trying to integrate the contact form in is http://www.marcusuav.com/contact.html. I used a code generator do to this, here is the code I wana put in their for the form. <form method="POST" action="contact.php"> Fields marked (*) are required <p>Email From:* <br> <input type="text" name="EmailFrom"> <p>Name:<br> <input type="text" name="Name"> <p>E-mail:<br> <input type="text" name="E-mail"> <p>Questions:<br> <textarea name="Questions"></textarea> <p><input type="submit" name="submit" value="Submit"> </form> <p> Any idea where to put this in my script? The code for that page is here... <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> <title>Marcus UAV UNMANNED AERIAL VEHICLE SYSTEMS</title> <script> <!-- active1 = new Image(26,26); active1.src = "but1b.jpg"; inactive1 = new Image(26,26); inactive1.src = "but1a.jpg"; active2 = new Image(26,26); active2.src = "but2b.jpg"; inactive2 = new Image(26,26); inactive2.src = "but2a.jpg"; active3 = new Image(26,26); active3.src = "but3b.jpg"; inactive3 = new Image(26,26); inactive3.src = "but3a.jpg"; active4 = new Image(26,26); active4.src = "but4b.jpg"; inactive4 = new Image(26,26); inactive4.src = "but4a.jpg"; active5 = new Image(26,26); active5.src = "but5b.jpg"; inactive5 = new Image(26,26); inactive5.src = "but5a.jpg"; active6 = new Image(26,26); active6.src = "but6b.jpg"; inactive6 = new Image(26,26); inactive6.src = "but6a.jpg"; active7 = new Image(26,26); active7.src = "but7b.jpg"; inactive7 = new Image(26,26); inactive7.src = "but7a.jpg"; active8 = new Image(26,26); active8.src = "but8b.jpg"; inactive8 = new Image(26,26); inactive8.src = "but8a.jpg"; //--> </script> <style type="text/css"> <!-- a:hover{color:#1D6BD1; text-decoration:underline; } a:link,a:visited{color:#1D6BD1; text-decoration:none} body,table,td,th,p,div { font-family: Tahoma, Arial, sans-serif; font-size: 11px; } p{margin: 10px;} .style6 { color: #393939; font-size: 10px; } .style8 { font-weight: bold; color: #2064d8; font-size: 24px; } .style9 { color: #2064d8; font-weight: bold; } .style10 {color: #5e5e5e} .style11 { font-family: Arial, Helvetica, sans-serif; font-size: 12; color: #284768; } .style14 { color: #5A5858; font-weight: bold; } .style15 { font-family: Arial, Helvetica, sans-serif; font-size: 18px; color: #0F3066; font-weight: bold; } --> </style> </head><script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> var pageTracker = _gat._getTracker("UA-4078145-1"); pageTracker._initData(); pageTracker._trackPageview(); </script> <body bgcolor="#EEEEEE" topmargin="0" leftmargin="0"> <table width="780" height="100%" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#FFFFFF"> <!--DWLayoutTable--> <tr> <td background="design_02.jpg" width="312" height="46" valign="middle" align="left"><a href="http://www.marcusuav.com/index.htm"><img src="design_01.jpg" width="67" height="46" border="0"></a></td> <td width="468" align="right" background="design_02.jpg"><p class="style6">www.MarcusUAV.com :: Unmanned Aerial Vehicle Systems </p></td> </tr> <tr background="design_04.jpg"> <td height="100" colspan="2" align="left" background="topbar.jpg"><!--DWLayoutEmptyCell--> </td> </tr> <tr> <td colspan="2"><img src="topleftbar.jpg" width="136" height="111"><a href="http://www.marcusuav.com/index.htm" onMouseOver="inactive1.src=active1.src; window.status='';return true" onMouseOut="inactive1.src='but1a.jpg'"><img src="but1a.jpg" width="95" height="111" border="0" name="inactive1"></a><a href="http://www.marcusuav.com/products.html" onMouseOver="inactive2.src=active2.src; window.status='';return true" onMouseOut="inactive2.src='but2a.jpg'"><img src="but2a.jpg" width="94" height="111" border="0" name="inactive2"></a><a href="http://www.marcusuav.com/faq.html" onMouseOver="inactive3.src=active3.src; window.status='';return true" onMouseOut="inactive3.src='but3a.jpg'"><img src="but3a.jpg" width="94" height="111" border="0" name="inactive3"></a><a href="http://www.marcusuav.com/contact.html" onMouseOver="inactive4.src=active4.src; window.status='';return true" onMouseOut="inactive4.src='but4a.jpg'"><img src="but4a.jpg" width="94" height="111" border="0" name="inactive4"></a><a href="http://www.marcusuav.com/order.html" onMouseOver="inactive5.src=active5.src; window.status='';return true" onMouseOut="inactive5.src='but5a.jpg'"><img src="but5a.jpg" width="90" height="111" border="0" name="inactive5"></a><img src="toprightbar.jpg" width="177" height="111"></td> </tr> <tr> <td colspan="2" height="13"><img src="design_12.jpg" width="780" height="13"></td> </tr> <tr> <td height="462" valign="top" colspan="2"><table width="100%" height="72%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td height="50" valign="middle" background="design_14.jpg"><img src="design_13.jpg" width="58" height="50" align="absmiddle"><span class="style8">CONTACT</span></td> <td height="50" width="267" valign="middle" background="design_14.jpg"><img src="design_16.jpg" width="39" height="50" align="absmiddle"></td> </tr> <tr> <td style="background-image:url(design_18.jpg); background-repeat:repeat-y" height="410" valign="top"><p align="justify" class="style15" style="margin-left: 30px"><br> Marcus UAV Corp.<br> 3800 Bridgeport Way W<br> University Place, WA 98466 </p> <p align="justify" class="style15" style="margin-left: 30px"> </p> <p align="justify" class="style15" style="margin-left: 30px">Email <br> [email protected]<br> <br> <br> Phone<br> Toll Free 1.866.931.4531 <br> Local 253.759.4531</p> <p align="justify" class="style15" style="margin-left: 30px">Fax</p> <p align="justify" class="style15" style="margin-left: 30px">253-759-0688</p> <p align="justify" class="style15" style="margin-left: 30px"> </p> <p align="justify" class="style15" style="margin-left: 30px">Dealer inquiries welcome!<br> </p> <p align="justify" class="style15" style="margin-left: 30px"> </p></td> <td valign="top" background="design_20.jpg"><p align="center" class="style10"><span class="style14"><span style="margin-left: 30px; font-family: Arial, Helvetica, sans-serif; font-size: 18px; color: #284768;"><br></span></span></p> <p align="center" class="style10"><span class="style14"><br> </span></p> <p align="center" class="style9"> </p></td> </tr> </table></td> <td></td> </tr> <tr> <td height="59" colspan="2"><img src="design_34.jpg" width="780" height="59"></td> </tr> <tr> <td height="44"> <p class="style9"><a href="#">Terms of Use</a> | <a href="#">Privacy Statement</a></p> </td> <td height="44"><p align="right" class="style10">Contact Us 1.866.931.4531 ©2008 Marcus UAV Corp. All rights reserved</p> </td> </tr> </table> </body> </html> Help would be appreciated Corey <!-- Contact Form credit link --> Created by <a target="_blank" href="http://www.tele-pro.co.uk/scripts/contact_form/">Contact Form Generator</a> Link to comment https://forums.phpfreaks.com/topic/106801-form-to-e-mail-code-placement/ Share on other sites More sharing options...
jonsjava Posted May 22, 2008 Share Posted May 22, 2008 because it's plain HTML, after the "?>" Link to comment https://forums.phpfreaks.com/topic/106801-form-to-e-mail-code-placement/#findComment-547495 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.