CH5 p 184
I am receiving:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in C:\Documents and Settings\Administrator\My Documents\My Work\PHP\Beg_PHP4\CH5\exam.php on line 20
from this code:
<html><head></head>
<body>
<?php
echo "<form method = 'POST' action = 'exam2.php'>";
$Student = array ("Einstein", "Ivan", "Napeleon", "Smart", "Newton" );
while (list(, $Name) = each($Student))
{
echo "What grade did $Name get in Math?";
echo "<br />";
echo "<select name = 'Math[]'>
<option> Grade A </option>
<option> Grade B </option>
<option> Grade C </option>
<option> Grade E</option>
</select>";
echo "<br />";
echo "<input type = HIDDEN name = Student[] value = '$Name'>:;
}
echo " <input type = Submit > </form>";
?>
</body></html>
I have tried
echo "<input type = 'Submit'> </form>";
echo "<input type = Submit> </form>";
What is wrong?
|