title: Problem with Http redirect using HTML meta tags
body: <p>please see the following code</p>
  
  <pre><code>// redirect to success page 
  if ($success){
   header( 'Location: ../Scripts/_lib/phpmailer-fe.php'); 
  }
  else{
    print "&lt;meta http-equiv="refresh" content="0;URL=error.html"&gt;";
  }
  </code></pre>
  
  <p>its not working</p>
  
  <pre><code>        &lt;form method="post" action="" enctype="multipart/form-data" name="quest"&gt;
          &lt;input type="hidden" value="valvedevelopertool.html" name="referer"&gt;
    &lt;table cellspacing="0" cellpadding="0"width="650" align="center"&gt;
              &lt;tr  class="tablerow"&gt;
        &lt;td id="apptitlebox" colspan="2"&gt;&lt;span class="valvedevelopertitle"&gt;Valve Specification Developer Tool&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;/table&gt;
  &lt;br /&gt;&lt;br /&gt;
  &lt;p align="center"&gt;Please enter known details to help assist us in processing your enquiry accuratly and quickly.&lt;/p&gt;
  &lt;table cellspacing="0" cellpadding="0" width="650" align="center" class="tablecontainer"&gt;
  &lt;tr&gt;
  &lt;td class="valvedevelopertoolreftitle"&gt;Reference&lt;/td&gt;&lt;td&gt;&lt;input type="text" style="width:204px" class="border" name="vdt_ref"/&gt;&lt;/td&gt;&lt;td class="valvedevelopertoolreftitle"&gt;Date&lt;/td&gt;&lt;td&gt;&lt;input type="text" style="width:204px" class="border" name="vdt_date"/&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;br /&gt;
  &lt;table cellspacing="0" cellpadding="0" width="650" align="center" class="tablecontainer"&gt;
  &lt;tr&gt;&lt;td class="valvedevelopertoolreftitle"&gt;Enquiry 1&lt;/td&gt;&lt;/tr&gt;
  &lt;tr class="tablerow"&gt;
  &lt;td width="154" class="titlebg"&gt;&lt;/td&gt;&lt;td width="243" class="valvedevelopertooltexttitle titlebg"&gt;Select Known Specifications&lt;/td&gt;&lt;td width="99" class="valvedevelopertooltexttitle titlebg"&gt;&lt;/td&gt;
  &lt;td width="252" class="valvedevelopertooltexttitle titlebg"&gt;Add More Detail&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class="tablerow"&gt;
  &lt;td class="valvedevelopertoolleft"&gt;Qty&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;
  &lt;select name="vdt_qty" id="Type" class="border" style="width:204px" onchange="qty1(document.quest.vdt_qty.value); qty2(document.quest.vdt_qty.value)"&gt;
               &lt;option selected value="1"&gt;1&lt;/option&gt;
                &lt;option value="2"&gt;2&lt;/option&gt;
                &lt;option value="3"&gt;3&lt;/option&gt;   
                &lt;option value="4"&gt;4&lt;/option&gt; 
                &lt;option value="5"&gt;5&lt;/option&gt;              
                &lt;option value="10"&gt;10&lt;/option&gt;              
                &lt;option value="15"&gt;15&lt;/option&gt;    
                &lt;option value="20"&gt;20&lt;/option&gt;              
                &lt;option value="50"&gt;50&lt;/option&gt; 
                &lt;option value="100"&gt;100&lt;/option&gt;              
                &lt;option value="otherqty"&gt;Other (specify to the right)&lt;/option&gt; 
  &lt;/select&gt;
  &lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext"&gt;&lt;span id="otherqtytitle" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;&lt;span id="otherqty" class="border"&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr  class="tablerow"&gt;
  &lt;td class="valvedevelopertoolleft highlight1"&gt;Type&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;
  &lt;select name="vdt_type" id="vdt_type" class="border" style="width:204px" onchange="type1(document.quest.vdt_type.value); type2(document.quest.vdt_type.value)"&gt;
    &lt;option selected value=""&gt;Please Select&lt;/option&gt;
    &lt;option value="PSV"&gt;PSV (Pressure Safety/Relief Valve)&lt;/option&gt;  
    &lt;option value="Controll Valve"&gt;Control Valve&lt;/option&gt;
    &lt;option value="Ball Valve"&gt;Ball Valve&lt;/option&gt;
    &lt;option value="Wedge Gate Valve"&gt;Wedge Gate Valve&lt;/option&gt;
    &lt;option value="Parallel Slide Gate Valve"&gt;Parallel Slide Gate Valve&lt;/option&gt;
    &lt;option value="Through Conduit Gate Valve"&gt;Through Conduit Gate Valve&lt;/option&gt;
    &lt;option value="Knife Gate Valve"&gt;Knife Gate Valve&lt;/option&gt;
    &lt;option value="Globe Valve"&gt;Globe Valve&lt;/option&gt;
    &lt;option value="checkvalve"&gt;Check Valve&lt;/option&gt;
    &lt;option value="Plug Valve"&gt;Plug Valve&lt;/option&gt;
    &lt;option value="Choke Valve"&gt;Choke Valve&lt;/option&gt;
    &lt;option value="Butterfly Valve"&gt;Butterfly Valve&lt;/option&gt;
    &lt;option value="Needle Valve"&gt;Needle Valve&lt;/option&gt;
    &lt;option value="Double Block/Bleed Valve"&gt;Double Block / Bleed Valve&lt;/option&gt;
    &lt;option value="3 Way Valve"&gt;3 Way Valve&lt;/option&gt;
    &lt;option value="4 Way Valve"&gt;4 Way Valve&lt;/option&gt;      
  &lt;/select&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext highlight1"&gt;&lt;span id="checkvalvetypetitle" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;&lt;span id="checkvalvetype" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr  class="tablerow"&gt;
  &lt;td class="valvedevelopertoolleft"&gt;Size&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;
  &lt;select name="vdt_size" id="Type" class="border" style="width:204px" onchange="size1(document.quest.vdt_size.value); size2(document.quest.vdt_size.value)"&gt;
                &lt;option selected value=""&gt;Please Select&lt;/option&gt;
                &lt;option value="0.5"&gt;0.5"&lt;/option&gt;
                &lt;option value="1"&gt;1"&lt;/option&gt;
                &lt;option value="1.5"&gt;1.5"&lt;/option&gt;  
                &lt;option value="2"&gt;2"&lt;/option&gt; 
                &lt;option value="4"&gt;4"&lt;/option&gt;              
                &lt;option value="6"&gt;6"&lt;/option&gt;              
                &lt;option value="8"&gt;8"&lt;/option&gt;    
                &lt;option value="10"&gt;10"&lt;/option&gt;              
                &lt;option value="12"&gt;12"&lt;/option&gt; 
                &lt;option value="14"&gt;14"&lt;/option&gt;              
                &lt;option value="16"&gt;16"&lt;/option&gt;              
                &lt;option value="18"&gt;18"&lt;/option&gt;              
                &lt;option value="20"&gt;20"&lt;/option&gt;              
                &lt;option value="24"&gt;24"&lt;/option&gt;              
                &lt;option value="30"&gt;30"&lt;/option&gt;              
                &lt;option value="36"&gt;36"&lt;/option&gt;              
                &lt;option value="40"&gt;40"&lt;/option&gt;              
                &lt;option value="othersize"&gt;Other (specify to the right)&lt;/option&gt; 
  &lt;/select&gt;
  &lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext"&gt;&lt;span id="othersizetitle" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;&lt;span id="othersize" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr  class="tablerow"&gt;
  &lt;td class="valvedevelopertoolleft highlight1"&gt;Pressure Class&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;
  &lt;select name="vdt_class" onchange="class1(document.quest.vdt_class.value); class2(document.quest.vdt_class.value)" class="border" style="width:204px"&gt;
  &lt;option value=""&gt;Please Select&lt;/option&gt;
  &lt;option value="ANSI"&gt;ANSI&lt;/option&gt;
  &lt;option value="PN"&gt;PN&lt;/option&gt;
  &lt;option value="API"&gt;API&lt;/option&gt;
  &lt;/select&gt;
  &lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext highlight1" align="right"&gt;&lt;span id="classname" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;&lt;span id="classtypes" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr  class="tablerow"&gt;
  &lt;td class="valvedevelopertoolleft"&gt;End Connections&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;
  &lt;select name="vdt_end" id="Type" class="border" style="width:204px"&gt;
                &lt;option selected value=""&gt;Please Select&lt;/option&gt;
                &lt;option value="Flanged Raised Face"&gt;Flanged Raised Face&lt;/option&gt;
                &lt;option value="Flanged Flat Face"&gt;Flanged Flat Face&lt;/option&gt;              
                &lt;option value="Flanged Ring Type Joint"&gt;Flanged Ring Type Joint&lt;/option&gt;
                &lt;option value="Socket Weld Female"&gt;Socket Weld Female&lt;/option&gt;
                &lt;option value="Socket Weld Male"&gt;Socket Weld Male&lt;/option&gt;                            
                &lt;option value="Screwed Female"&gt;Screwed Female&lt;/option&gt;
                &lt;option value="Screwed Male"&gt;Screwed Male&lt;/option&gt;                            
  &lt;/select&gt;
  &lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr  class="tablerow"&gt;
  &lt;td class="valvedevelopertoolleft highlight1"&gt;Bore&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;
  &lt;select name="vdt_bore" id="Type" class="border" style="width:204px"&gt;
                &lt;option selected value=""&gt;Please Select&lt;/option&gt;
                &lt;option value="Full"&gt;Full&lt;/option&gt;
                &lt;option value="Reduced"&gt;Reduced&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr  class="tablerow"&gt;
  &lt;td class="valvedevelopertoolleft"&gt;Body Material&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;
  &lt;select name="vdt_body" id="Type" class="border" style="width:204px" onchange="body1(document.quest.vdt_body.value); body2(document.quest.vdt_body.value)"&gt;
                &lt;option selected value=""&gt;Please Select&lt;/option&gt;
                &lt;option value="Carbon Steel"&gt;Carbon Steel&lt;/option&gt;
                &lt;option value="Stainless Steel"&gt;Stainless Steel&lt;/option&gt; 
                &lt;option value="Duplex"&gt;Duplex&lt;/option&gt;    
                &lt;option value="Alloy"&gt;Alloy&lt;/option&gt;              
                &lt;option value="Bronzes"&gt;Bronzes&lt;/option&gt; 
                &lt;option value="Leaded Gunmetal"&gt;Leaded Gunmetal&lt;/option&gt;              
                &lt;option value="Low Temp Nickel Alloy Steel"&gt;Low Temp Nickel Alloy Steel&lt;/option&gt;              
                &lt;option value="Titanium"&gt;Titanium&lt;/option&gt;   
                &lt;option value="Hastelloy"&gt;Hastelloy&lt;/option&gt;              
                &lt;option value="Monel"&gt;Monel&lt;/option&gt;              
                &lt;option value="Cast Iron"&gt;Cast Iron&lt;/option&gt; 
  &lt;/select&gt;
  &lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext"&gt;&lt;span id="bodytitle" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;&lt;span id="bodytypes" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr  class="tablerow"&gt;
  &lt;td class="valvedevelopertoolleft highlight1"&gt;Trim Material&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;
  &lt;select name="vdt_trim" id="Type" class="border" style="width:204px" onchange="trim1(document.quest.vdt_trim.value); trim2(document.quest.vdt_trim.value)"&gt;
                &lt;option selected value=""&gt;Please Select&lt;/option&gt;
                &lt;option value="Carbon Steel"&gt;Carbon Steel&lt;/option&gt;
                &lt;option value="Stainless Steel"&gt;Stainless Steel&lt;/option&gt; 
                &lt;option value="Duplex"&gt;Duplex&lt;/option&gt;    
                &lt;option value="Alloy"&gt;Alloy&lt;/option&gt;   
                &lt;option value="13% Chrome Steel"&gt;13% Chrome Steel&lt;/option&gt; 
                &lt;option value="Bronze and Aluminium Bronze"&gt;Bronze &amp;amp; Aluminium Bronze&lt;/option&gt; 
                &lt;option value="Nickel Aluminium Bronze"&gt;Nickel Aluminium Bronze&lt;/option&gt; 
                &lt;option value="Leaded Gunmetal"&gt;Leaded Gunmetal&lt;/option&gt;              
                &lt;option value="Titanium"&gt;Titanium&lt;/option&gt;              
                &lt;option value="Low Temp Nickel Alloy Steel"&gt;Low Temp Nickel Alloy Steel&lt;/option&gt;
                &lt;option value="Monel"&gt;Monel&lt;/option&gt;              
                &lt;option value="Cast Iron"&gt;Cast Iron&lt;/option&gt; 
                &lt;option value="Ceramics"&gt;Ceramics&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext highlight1"&gt;&lt;span id="trimtitle" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;&lt;span id="trimtypes" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr  class="tablerow"&gt;
  &lt;td class="valvedevelopertoolleft"&gt;Seat Material&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;
  &lt;select name="vdt_seat" id="Type" class="border" style="width:204px" onchange="seat1(document.quest.vdt_seat.value); seat2(document.quest.vdt_seat.value)"&gt;
              &lt;option selected value=""&gt;Please Select&lt;/option&gt;
              &lt;option value="PTFE"&gt;PTFE&lt;/option&gt;
              &lt;option value="Nylon"&gt;Nylon&lt;/option&gt;
              &lt;option value="Peek"&gt;Peek&lt;/option&gt;
              &lt;option value="Viton"&gt;Viton&lt;/option&gt;                        
              &lt;option value="Metal"&gt;Metal&lt;/option&gt;
  &lt;/select&gt;
  &lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext" align="right"&gt;&lt;span id="seatgradetitle" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;&lt;span id="seatgrade" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr  class="tablerow"&gt;
  &lt;td class="valvedevelopertoolleft highlight1"&gt;NACE Materials&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;
  &lt;select name="vdt_nace" id="Type" class="border" style="width:204px"&gt;
              &lt;option selected value=""&gt;Please Select&lt;/option&gt;
              &lt;option value="Yes"&gt;Yes&lt;/option&gt;
              &lt;option value="No"&gt;No&lt;/option&gt;
  &lt;/select&gt;
  &lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr  class="tablerow"&gt;
  &lt;td class="valvedevelopertoolleft"&gt;Operation&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;
  &lt;select name="vdt_operation" id="Type" class="border" style="width:204px"  onchange="operation1(document.quest.vdt_operation.value); operation2(document.quest.vdt_operation.value)"&gt;
              &lt;option selected value=""&gt;Please Select&lt;/option&gt;
              &lt;option value="Manual Hand Lever"&gt;Manual Hand Lever&lt;/option&gt;
              &lt;option value="Manual Handwheel"&gt;Manual Handwheel&lt;/option&gt;
              &lt;option value="Manual Gearbox"&gt;Manual Gearbox&lt;/option&gt;
              &lt;option value="Automated/Actuated"&gt;Automated / Actuated&lt;/option&gt;                        
              &lt;option value="otheroperation"&gt;Other (specify to the right)&lt;/option&gt; 
  &lt;/select&gt;
  &lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext"&gt;&lt;span id="otheroperationtitle" class="border"&gt;&lt;/span&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext"&gt;&lt;span id="otheroperation" class="border"&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td class="valvedevelopertoolleft highlight1"&gt;Other Information&lt;/td&gt;
  &lt;td class="valvedevelopertooltextarea highlight1" colspan="3" align="left" style="padding-left:23px; padding-top:3px; height:95px"&gt;&lt;span class="valvedevelopertooltextarea highlight1" style="padding-top:3px; height:95px"&gt;
    &lt;textarea name="textarea" cols="5" rows="4" class="border" style="width:550px"&gt;&lt;/textarea&gt;
  &lt;/span&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;br /&gt;
  &lt;table cellspacing="0" cellpadding="0" width="650" align="center" class="tablecontainer"&gt;
  &lt;tr class="tablerow"&gt;
  &lt;td width="154" class="titlebg"&gt;&lt;/td&gt;&lt;td width="243" class="valvedevelopertooltexttitle titlebg"&gt;Your Details&lt;/td&gt;&lt;td width="99" class="valvedevelopertooltexttitle titlebg"&gt;&lt;/td&gt;
  &lt;td width="252" class="valvedevelopertooltexttitle titlebg"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  
  &lt;tr&gt;
  &lt;td class="valvedevelopertoolleft" width="154"&gt;Name&lt;/td&gt;
  &lt;td class="valvedevelopertooltext" width="243"&gt;&lt;input name="contact_name" style=" width: 200px;" type="text" maxlength="200" class="border"&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext" width="99"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext" width="252"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td class="valvedevelopertoolleft highlight1" width="154"&gt;Email Address&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1" width="243"&gt;&lt;input name="contact_email" style=" width: 200px;" type="text" maxlength="200" class="border"&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext highlight1" width="99"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1" width="252"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td class="valvedevelopertoolleft" width="154"&gt;Telephone Number&lt;/td&gt;
  &lt;td class="valvedevelopertooltext" width="243"&gt;&lt;input name="contact_tel" style=" width: 200px;" type="text" maxlength="200" class="border"&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext" width="99"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext" width="252"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td class="valvedevelopertoolleft highlight1" width="154"&gt;Company&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1" width="243"&gt;&lt;input name="contact_company" style=" width: 200px;" type="text" maxlength="200" class="border"&gt;&lt;/td&gt;
  &lt;td class="valvedevelopertoolextratext highlight1" width="99"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td class="valvedevelopertooltext highlight1" width="252"&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;br /&gt;
  &lt;table cellspacing="0" cellpadding="0" width="650" align="center" class="tablecontainer"&gt;
  &lt;tr&gt;
  &lt;td colspan="4"&gt;
  &lt;?php
                      # Get the reCAPTCHA library
                      require_once('../recaptcha/recaptchalib.php');
  
                      # These are /not/ real keys - you must replace them with your *own* keys
                      # obtained from http://recaptcha.net/api/getkey
                      define('PUBLIC_KEY',  '[MY PUBLIC KEY]');
                      define('PRIVATE_KEY', '[MY PRIVATE KEY]');
  
                      # Did the user fail the captcha test?
                      $error = null;
  
                      # This is where we process the user's response. We don't
                      # do this when the form is initially displayed - only
                      # when the user submits it.
                      if ($_POST["recaptcha_response_field"]) {
                          $response = recaptcha_check_answer( 
                              PRIVATE_KEY, $_SERVER['REMOTE_ADDR'],
                              $_POST['recaptcha_challenge_field'],
                              $_POST['recaptcha_response_field']
                          );
  
                          if ( $response-&gt;is_valid ) {
  
  // get posted data into local variables
  $EmailFrom = Trim(stripslashes($_POST['vdt_type'])); 
  $EmailTo = "MAIL@MAIL.COM";
  
  // validation
  $validationOK=true;
  if (Trim($EmailFrom)=="") $validationOK=false;
  if (!$validationOK) {
  print '&lt;meta http-equiv="refresh" content="0;URL=error.html"&gt;';
    exit;
  }
  
  // prepare email body text
  $Body = "";
  $Body .= "Name: ";
  $Body .= $Name;
  $Body .= "n";
  $Body .= "n";
  $Body .= "Email: ";
  $Body .= $EmailFrom;
  $Body .= "n";
  $Body .= "n";
  $Body .= "Company: ";
  $Body .= $Company;
  $Body .= "n";
  $Body .= "n";
  $Body .= "Telephone: ";
  $Body .= $Telephone;
  $Body .= "n";
  $Body .= "n";
  $Body .= "Fax: ";
  $Body .= $Fax;
  $Body .= "n";
  $Body .= "n";
  $Body .= "Location: ";
  $Body .= $Location;
  $Body .= "n";
  $Body .= "n";
  $Body .= "How Did You Hear About Us: ";
  $Body .= $HowDidYouHearAboutUs;
  $Body .= "n";
  $Body .= "n";
  $Body .= "Enquiry Type: ";
  $Body .= $EnquiryType;
  $Body .= "n";
  $Body .= "n";
  $Body .= "Comments: ";
  $Body .= $Comments;
  $Body .= "n";
  $Body .= "n";
  $Body .= "Join Mailing List: ";
  $Body .= $MailingList;
  $Body .= "n";
  
  
  
  // send email 
  $success = mail($EmailTo, $Subject, $Body, "From: noreply@score-training.com");
  
  // redirect to success page 
  if ($success){
  if (isset($_POST['submit'])) {
  header ("Location: ../Scripts/_lib/phpmailer-fe.php");
  }
  else{
    print '&lt;meta http-equiv="refresh" content="0;URL=error.html"&gt;';
  }
  }
                              # For example
                              # ... validate user input ...
                              # ... store form data in a database ...
                              # ... redirect to 'thank you' page
  
                          }
                          else {
                              # The user failed the reCAPTCHA test so we need
                              # to fill in the error message and re-try the
                              # form submission
                              $error = $response-&gt;error;
                          }
                      }
  
                      # Display the reCAPTCHA challenge. The first time
                      # through $error will be null. 
  
                      echo recaptcha_get_html( PUBLIC_KEY, $error );
                  ?&gt;
  
  &lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;
  &lt;td colspan="4" align="center"&gt;&lt;input type="submit" value="Submit Enquiry" class="border" name="submit"&gt;&amp;nbsp;&lt;input type="reset" value="Clear Form" class="border"&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>