I think that section would be better if done like this.
$errors = "
<table border=\"0\" bgcolor=\"red\" width=\"400\">
<tr><td bgcolor=\"white\">
The Following Errors were found when you submitted the form:
<br>";
for( $a=0;$a<count( $all_errors );$a++ )
{
$error .= $all_errors[$a];
}
$errors .= "</td></tr></table>";
The endif sytax is valid
HalfaBee
from the manual.
Example C-6. Migration: new if..endif syntax
if ($foo):
echo "yep\n";
elseif ($bar):
echo "almost\n";
else:
echo "nope\n";
endif;
Notice that the semicolons have been replaced by colons in all statements but the one terminating the expression (endif).