rendered paste body<?php// entry field variables$name = $_POST[ 'name' ];$region = $_POST[ 'region' ];$phone = $_POST[ 'phone' ];$email = $_POST[ 'email' ];$subject = $_POST[ 'subject' ];$message = $_POST[ 'message' ];$recipient = 'email@gmail.com'; // email validation$errors = array();if ( !$_POST[ 'email' ] ) { $errors[] = $email_error = "<div id='error_email'>Please enter your email.</div>"; } else if ( $_POST[ 'email' ] ) { function checkEmail( $email ) { if ( eregi( "^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$]", $email ) ) { return FALSE; } list( $Username, $Domain ) = split( "@", $email ); if( getmxrr( $Domain, $MXHost ) ) { return TRUE; } else { //if ( fsockopen( $Domain, 25, $errno, $errstr, 30 ) ) return TRUE; //else return FALSE; } } if ( checkEmail($email) == FALSE ) $errors[] = $email_error = "<div id='error_email'>Invalid email syntax.</div>";}if ( count ( $errors ) > 0 ) { ;} else { // if validation is successful, mail the results $message1 .= ( "Email:\t\t$email\n" . // "Subject:\t$subject\n" . "Name:\t\t$name\n\n" . "Region:\t$region\n" . "Phone:\t\t$phone\n" . "Message:\n$message" ); $headers = "From: Site Contact Form\n"; $headers .= "Reply-to: $email"; mail ( $recipient, $subject, $message1 , $headers ); //header ( 'Location: ' ); echo "Thank you!"; exit; }?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><!-- DW6 --><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>Contact Us</title><link rel="stylesheet" href="2col_leftNav.css" type="text/css"><style type="text/css"><!--.style3 {font-size: 36%}.style7 {font-size: x-small}body { background-color: #66CCFF;}.style8 { font-size: x-small; font-weight: bold;}.style9 {font-size: 150%}.style10 {color: #808080}.style12 {font-size: medium}.style13 {font-size: small}.style14 { font-size: large; font-weight: bold;}.style16 {font-size: x-large}.style18 { font-size: medium; font-weight: bold; color: #2A1FAA;}--></style></head><!-- The structure of this file is exactly the same as 2col_rightNav.html; the only difference between the two is the stylesheet they use --><body> <div id="masthead"> <h1 id="siteName"><span class="style9">SPRAYeasy</span><span class="style3">TM<br> <span class="style7">Chemical Application Software </span><br> </span></h1> <div id="globalNav"><span class="style14"> <span class="style16"><a href="index.htm">Home</a> | <a href="buysenow.htm"> Buy Now</a>| <a href="other.htm"> Bud Dissection </a>| </span></span><span class="style16">Contact Us </span> </div> </div> <!-- end masthead --> <div id="content"> <div id="breadCrumb"> </div> <h2 id="pageName"><br> Contact Us</h2> <div class="feature"> <p align="left" class="style12"><strong>Daniel Smith<br> <span class="style13">BSc(Hons), Grad Dip Bus Ent, CPAg </span> </strong></p> <p align="left" class="style12"><strong>DLS Horticulture Pty Ltd</strong></p> <p align="left" class="style12"><strong>Phone: 0419 817 671</strong></p> <p align="left"><span class="style18">Send us an email by filling out the form below:</span></p> <form action="" method="post" enctype="multipart/form-data" name="form1"> <table width="459" border="0"> <tr> <td width="118">Name</td> <td width="331"><input name="name" type="text" id="name" maxlength="50" value="<?php echo $name; ?>"></td> </tr> <tr> <td>Region/Town</td> <td><input name="region" type="text" id="region" value="<?php echo $region; ?>"></td> </tr> <tr> <td>Phone</td> <td><input name="phone" type="text" id="phone" value="<?php echo $phone; ?>"></td> </tr> <tr> <td>Email</td> <td ><input name="email" type="text" id="email" value="<?php echo $email; ?>"></td> </tr> <tr> <td>Subject</td> <td><input name="subject" type="text" id="subject" value="<?php echo $subject; ?>"></td> </tr> <tr> <td height="96">Message</td> <td><textarea name="message" id="message" value="<?php echo $message; ?>"></textarea></td> </tr> <tr> <td height="34"><input type="submit" name="Submit" value="Submit"></td> <td> </td> </tr> </table> <?php if ( isset($email) ) echo $email_error; ?> </form> <p align="left"><br> </p> </div> <div class="story"> <p align="center"> </p> </div> <div class="story"> <p> </p> </div> </div> <div id="navBar"> <div id="sectionLinks"><div id="advert"> <p><strong>Produce AWRI Standard Spray Diaries.</strong><br>"The Executive Council endorses the adoption of the common spray diary format and definitions developed by the Australian Wine Research Institute (AWRI) in conjunction with several of the major wine companies.<br>Further, that WFA encourages the widespread adoption of the common spray diary format and definitions". <strong></strong><em><em><strong><br>Winemakers Federation of Australia. </strong></em></em></p> <p> </p> </div> </div> <div class="relatedLinks"> <h3> <span class="style8"><br> <a href="video.htm"><img src="images/demotv.jpg" alt="Click to view video..." width="139" height="128" border="0"></a> <br> Click the TV screen above to view a demonstration video... <br> </span></h3> </div> <div id="advert"> <h3> </h3> <h3><strong>News:</strong></h3> <p> <strong>Secure credit card facilities now available. </strong><br>Buy SPRAYeasy now using your credit card. <br><br> <strong>SPRAYeasy makes a strong training tool! </strong><br>SPRAYeasy is now in use in TAFEs and Universities. We are very pleased that our software is helping to build real world skills in students.</p> <p> </p> </div> <div id="headlines"><p><img src="images/SmallCPAg.jpg" width="125" height="102"> </p> </div> </div> <!--end navbar --> <div id="siteInfo"> | Contact Us | <span class="style10">©2007 DLS Horticulture Pty Ltd</span></div> <br> </body></html>