I am in the process of learning php. I have the following script that is giving me problems. When I got to the page I get:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in E:\Inetpub\wwwroot\pages\fayardracing.com\jackiii\states.php on line 10
this is the script:
<HTML>
<HEAD></HEAD>
<BODY>
<FORM ACTION="capitals.php" METHOD=POST>
What states do you want to know the captal of?
<SELECT NAME=State>
<?php
$StatesOfTheUSA = array (1 => "Alabama", "Alaska", "Arizona", "Arkansas",
"California", "Colorado","Connecticut", "Deleware", Florida", "Georgia",
"Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota",
"Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire",
"New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio",
"Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota",
"Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin",
"Wyoming");
for ($counter=1; $counter<51; counter++) {
echo "<OPTION>$StatesOfTheUSA[$counter]</OPTION>";
}
echo "</SELECT><BR><BR>";
for ($counter=1; $counter<51; $counter++) {
echo "<INPUT TYPE=HIDDEN
NAME='HiddenState[]'VALUE='$StatesOfTheUSA[$counter]'>";
echo"INPUT TYPE=SUBMIT></FORM>";
?>
</BODY>
</HTML>
I have looked and cannot for my life see what is wrong. Thank you for your help