title: My Header location not working on live but on localhost working Perfect
body: <p>My Header location not working on live i have Godaddy hosting and my other projects works perfect but on localhost working Perfect.</p>
  
  <pre><code>&lt;?php
  
      $dataerr    =   "";
      $valueX     =   rand(1, 6);
      $valueY     =   rand(6, 9);
      $bodmas     =   array('+', '-', '*');
      shuffle($bodmas);
      eval("\$ans=".$valueY.$bodmas[0].$valueX.";");
      $security = md5($ans);
  
  
  
      if(isset($_POST['vname']))  {$visname   =   $_POST['vname'];}
      if(isset($_POST['vemail'])) {$visemail  =   $_POST['vemail'];}
      if(isset($_POST['ccode']))  {$ccode     =   $_POST['ccode'];}
      if(isset($_POST['hcode']))  {$hcode     =   $_POST['hcode'];}
  
      if($_SERVER['REQUEST_METHOD'] == 'POST') {  
  
      $passing    =   md5($ccode);
  
  
      if((!filter_var($visemail, FILTER_VALIDATE_EMAIL)) or (!preg_match("/^[a-zA-Z ]*$/",$visname)) or
          (!is_numeric($ccode)) or ($passing !== $hcode)) {
  
              $displayblock = "showERROR";
  
              if(!preg_match("/^[a-zA-Z ]*$/",$visname)) {
                  $dataerr .= '&lt;span class=""&gt;&lt;li&gt;Please enter valid name !&lt;/li&gt;&lt;/span&gt;'; 
              }
  
              if(!filter_var($visemail, FILTER_VALIDATE_EMAIL)) {
                  $dataerr .= '&lt;span class=""&gt;&lt;li&gt;Please enter valid email address !&lt;/li&gt;&lt;/span&gt;';
              }
  
              if(!is_numeric($ccode)){
                  $dataerr .= '&lt;span class=""&gt;&lt;li&gt;Solve the sum, no kidding !&lt;/li&gt;&lt;/span&gt;';
              } else {if($passing !== $hcode){
                      $dataerr .= '&lt;span class=""&gt;&lt;li&gt;Your answer was Incorrent !&lt;/li&gt;&lt;/span&gt;';
                  }
              }
  
          } else {
              session_start();
              $_SESSION['DSTAR'] = "DSTARINFOTECH";
              header('Location: http://www.example.com/');
          }
      } 
  
      ?&gt;
  </code></pre>