title: Contact form problem - I do receive messages, but no contents (blank page)
body: <p>I have a contact form on site which used to work, but since last few months has stopped working properly.  This could have been due to some coding error that I can't figure out.  What happens is that I receive the messages sent, but they are completely blank, with no contents at all.  What could be the problems? </p>
  
  <p>I'm attaching first the front-end page, and then the back-end.</p>
  
  <p>Sample of contact.php the front-end code:-</p>
  
  <pre><code>&lt;div id="content"&gt;
       &lt;h2 class="newitemsxl"&gt;Contact Us&lt;/h2&gt;
  
  &lt;div id="contactcontent"&gt;
          &lt;form method="post" action="contactus.php"&gt;
  Name:&lt;br /&gt;
  &lt;input type="text" name="Name" /&gt;&lt;br /&gt;
  Email:&lt;br /&gt;
  &lt;input type="text" name="replyemail" /&gt;&lt;br /&gt;
  Your message:&lt;br /&gt;
  &lt;textarea name="comments" cols="40" rows="4"&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;
  
  &lt;?php require("ClassMathGuard.php"); MathGuard::insertQuestion(); ?&gt;&lt;br /&gt; 
    &lt;input type="submit" name="submit" value="Send" /&gt;
  * Refresh browser for a different question. :-)
  
  &lt;/form&gt;
  &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Sample of contactus.php (backend code):-</p>
  
  <pre><code>&lt;?php
  
  /* first we need to require our MathGuard class */
  require ("ClassMathGuard.php");
  /* this condition checks the user input. Don't change the condition, just the body within the curly braces */
  if (MathGuard :: checkResult($_REQUEST['mathguard_answer'], $_REQUEST['mathguard_code'])) {
      $mailto="questions@stylishgoods.com";
  $pcount=0;
  $gcount=0;
  $subject = "A Stylish Goods Enquiry";
  $from="DO_NOT_reply@stylishgoods.com";
  echo ("Great, you're message has been sent !"); //insert your code that will be executed when user enters the correct answer
  } else {
      echo ("Sorry, wrong answer, please go back and try again !"); //insert your code which tells the user he is spamming your website
  }
  
  
  while (list($key,$val)=each($HTTP_POST_VARS))
  {
  $pstr = $pstr."$key : $val \n ";
  ++$pcount;
  }
  while (list($key,$val)=each($HTTP_GET_VARS))
  {
  $gstr = $gstr."$key : $val \n ";
  ++$gcount;
  }
  if ($pcount &gt; $gcount)
  {
  $comments=$pstr;
  mail($mailto,$subject,$comments,"From:".$from);
  }
  else
  {
  $comments=$gstr;
  mail($mailto,$subject,$comments,"From:".$from);
  }
  ?&gt;
  </code></pre>