Hey,
Here is a submit php script:
<?php
echo "You have completed section ". $section. " - ". $testid;
$val = array_sum($HTTP_POST_VARS);
//connects to db here
$query = "insert into questions (Name,A1) values
('$name','$val')";
mysql_query($query) or
die (mysql_error());
echo "<p>Your score for this section of the test is ". $val. ".<p>";
if ( array_sum($HTTP_POST_VARS) >= 51 )
{
echo $high;
}
else
{
echo $low;
}
?>
However I keep getting the return as:
Results
= 51 ) { echo $high; } else { echo $low; } ?>
any idea why?