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.
The syntax error is: "The topic (none) was not found in any of the reference materials currently installed".
<?php
$ds = 'Pear';
$sd = 'Orange';
$dt = 'Banana';
$td = 'KiwiFruit';
$FoodArray=array();
echo "<p>";
foreach ($_POST ["Gender"] as $value) {
if ($value == Female) {
$FoodArray=array($ds, $sd, $dt, $td);
echo "<ul>";
foreach ($FoodArray as $key => $value)
{
echo "<li>" . $value . "</li>";
}
echo "</ul>";
}
?>
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.