title: PHP Syntax Error
body: <p>I posted this question a little earlier but here is the full version. I keep getting a Syntax Error which is solved when I remove the following code. So there must be a problem here, I just can't see what it is.  </p>
  
  <p>The syntax error is: "The topic (none) was not found in any of the reference materials currently installed".</p>
  
  <pre><code> &lt;?php
  
  $ds = 'Pear';
  $sd = 'Orange';
  $dt = 'Banana';
  $td = 'KiwiFruit';
  
  
  $FoodArray=array();
  
  echo "&lt;p&gt;";
  
  foreach ($_POST ["Gender"] as $value) {
      if ($value == Female) {
      $FoodArray=array($ds, $sd, $dt, $td);
      echo "&lt;ul&gt;";
  foreach ($FoodArray as $key =&gt; $value)
  
  {
      echo "&lt;li&gt;" . $value . "&lt;/li&gt;";
  }
      echo "&lt;/ul&gt;";
  }
  
  
  
  ?&gt;
  </code></pre>
  
  <p>This is the only thing stopping me from finishing a project, so I would be grateful to anyone who can help. I will try to answer a few of your questions too. </p>