$Name = Trim(stripslashes($_POST['Name'])); $Tel = Trim(stripslashes($_POST['Tel'])); $Email = Trim(stripslashes($_POST['Email'])); $Message = Trim(stripslashes($_POST['Message']));
<?php$EmailFrom = \"form@andrewsontheweb.com\";$EmailTo = \"jack@andrewsontheweb.com\";$Subject = \"Inquiry from AndrewsOnTheWeb.com\";$Name = Trim(stripslashes($_POST['Name'])); $Tel = Trim(stripslashes($_POST['Tel'])); $Email = Trim(stripslashes($_POST['Email'])); $Message = Trim(stripslashes($_POST['Message'])); // validation$validationOK=true;if (!$validationOK) { print \"<meta http-equiv=\\"refresh\\" content=\\"0;URL=error.htm\\">\"; exit;}// prepare email body text$Body = \"\";$Body .= \"Name: \";$Body .= $Name;$Body .= \"\n\";$Body .= \"Tel: \";$Body .= $Tel;$Body .= \"\n\";$Body .= \"Email: \";$Body .= $Email;$Body .= \"\n\";$Body .= \"Message: \";$Body .= $Message;$Body .= \"\n\";// send email $success = mail($EmailTo, $Subject, $Body, \"From: <$EmailFrom>\");// redirect to success page if ($success){ print \"<meta http-equiv=\\"refresh\\" content=\\"0;URL=contactthanks.php\\">\";}else{ print \"<meta http-equiv=\\"refresh\\" content=\\"0;URL=error.htm\\">\";}?>
<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head> <title>Web Design, Advertising Agency,Graphic Designers, Dallas TX –</title> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\"> <script language=\"JavaScript\"><!--function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; }}function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; }}// --> </script><!-- End Preload Script --> <link href=\"../andrews.css\" rel=\"stylesheet\" media=\"screen\"> <style type=\"text/css\" media=\"screen\"> <!--.subhead { color: yellow }.subheadgreen { color: lime }--> </style> <csscriptdict></csscriptdict> <script type=\"text/javascript\"><!--function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; }}function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } }}// --></script> <csactiondict></csactiondict> <script type=\"text/javascript\"><!--var preloadFlag = false;function preloadImages() { if (document.images) { over_web_design_dallas_3b = newImage(/*URL*/'../images/web_design_dallas_3b_over.gif'); over_web_design_dallas_4b = newImage(/*URL*/'../images/web_design_dallas_4b_over.gif'); over_web_design_dallas_5b = newImage(/*URL*/'../images/web_design_dallas_5b_over.gif'); preloadFlag = true; }}// --></script> <link href=\"contact_style.css\" rel=\"stylesheet\" type=\"text/css\"></head><body onLoad=\"preloadImages();\" leftmargin=\"0\" topmargin=\"0\"<body bgcolor=\"#63635A\" text=\"#CCCCCC\" link=\"#CCCCCC\" vlink=\"#CCCCCC\" alink=\"#CCCCCC\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"915\"> <tbody> <tr height=\"50\"> <td rowspan=\"2\" valign=\"top\" width=\"295\"><a href=\"/\"><img alt=\"Dallas advertising agency, web design\" name=\"andrews_1b\" src=\"../images/web_design_dallas_1b.gif\" border=\"0\" height=\"50\" width=\"199\"></a><a href=\"/\"><img src=\"../images/web_design_dallas_2b.gif\" alt=\"Web design Dallas, advertising agency Dallas\" border=\"0\" height=\"50\" width=\"80\"></a><br> <a onmouseover=\"changeImages( /*CMP*/'web_design_dallas_3b',/*URL*/'../images/web_design_dallas_3b_over.gif');return true\" onmouseout=\"changeImages( /*CMP*/'web_design_dallas_3b',/*URL*/'../images/web_design_dallas_3b.gif');return true\" href=\"/\"><img src=\"../images/web_design_dallas_3b.gif\" alt=\"Dallas web design and advertising agency\" name=\"web_design_dallas_3b\" border=\"0\" height=\"126\" width=\"199\"></a><a onmouseover=\"changeImages( /*CMP*/'web_design_dallas_4b',/*URL*/'../images/web_design_dallas_4b_over.gif');return true\" onmouseout=\"changeImages( /*CMP*/'web_design_dallas_4b',/*URL*/'../images/web_design_dallas_4b.gif');return true\" href=\"#\"><img src=\"../images/web_design_dallas_4b.gif\" alt=\"Web design and advertising agency in Dallas TX\" name=\"web_design_dallas_4b\" border=\"0\" height=\"126\" width=\"80\"></a><br> <a onmouseover=\"changeImages( /*CMP*/'web_design_dallas_5b',/*URL*/'../images/web_design_dallas_5b_over.gif');return true\" onmouseout=\"changeImages( /*CMP*/'web_design_dallas_5b',/*URL*/'../images/web_design_dallas_5b.gif');return true\" href=\"../portfolio.html\"><img src=\"../images/web_design_dallas_5b.gif\" alt=\"Dallas web design and advertising agency in Dallas\" name=\"web_design_dallas_5b\" border=\"0\" height=\"135\" width=\"199\"></a><img src=\"../images/web_design_dallas_6b.gif\" alt=\"Web site design, Advertising agency\" border=\"0\" height=\"135\" width=\"80\"></td> <td colspan=\"2\" height=\"54\"><img src=\"../images/contact_andrews.gif\" alt=\"Andrews experienc\" width=\"300\" height=\"54\"></td> </tr> <tr valign=\"top\"> <td colspan=\"2\" valign=\"top\"> <p><font color=\"white\" size=\"2\" face=\"Verdana\">Got a question, suggestion, comment or ? Let us know. We'll respond asap.</font></p> <div id=\"page-wrap\"> <div id=\"contact-area\"> <form method=\"post\" action=\"contactengine.php\"> <label for=\"Name\" id=\"Name\">Name:</label> <input type=\"text\" name=\"Name\" /> <label for=\"City\" id=\"City\">City:</label> <input type=\"text\" name=\"City\" /> <label for=\"Email\" id=\"Email\">Email:</label> <input type=\"text\" name=\"Email\" /> <label for=\"Message\" id=\"Message\">Message:</label> <br /> <textarea name=\"Message\" rows=\"20\" cols=\"20\"></textarea> <input type=\"submit\" name=\"submit\" value=\"Submit\" class=\"submit-button\" /> </form> <div style=\"clear: both;\"></div> </div> </div> </td> </tr> <tr> <td width=\"295\"><br> </td> <td valign=\"top\" width=\"280\"><img src=\"../images/dot_clear.gif\" alt=\"Web design spacer\" border=\"0\" height=\"32\" width=\"32\"></td> <td valign=\"top\" width=\"340\"><br> </td> </tr> <tr> <td colspan=\"3\"> <div align=\"center\"> <a href=\"/\"><font size=\"1\">Home</font></a><font size=\"1\"> | <a href=\"../experience.html\"><font color=\"white\" face=\"Verdana\">Experience</font> </a> | <a href=\"../portfolio.html\"><font size=\"1\">Portfolio</font></a> | <a href=\"../contact_andrews.html\"><font size=\"1\">Contact Us</a></font> <p><font color=\"white\" face=\"Verdana\" size=\"1\">Andrews & Associates – 9418 Amberton Parkway – Dallas, TX USA 75243 – Ph: 469-330-9122</font></p> </div> </td> </tr> </tbody></table></body></html>
Here's the php:
and the html:
and last, the URL of the page:
http://andrewsontheweb.com/forms/contact_andrews.html