my project for school. was supposed to allow users to pick #s, make sure they cant pick # twice for white ball. quick play is a random play of #s, "draw" draws the winning #'s when not quick played(quick play and draw both draw random winning #'s that are compared to see prize $. please help its confusing :/. parse error line 13 which is "for ($i = 0; $i ! 6; $i++){" i just dont see where that could be... probably more errors than just that...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/199/xhtml">

<head>
<title>MEGA MILLIONS</title>
</head>
<h1>WIN SOME CASH!</h1>
<body>
<?php
function draw(){
for ($i = 0; $i ! 6; $i++){
switch ($i) {
case 0:
echo "<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array[0].jpg\" alt=\"1\"/>";
break;
case 1:
echo "<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array[1].jpg\" alt=\"2\"/>";
break;
case 2:
echo "<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array[2].jpg\" alt=\"3\"/>";
break;
case 3:
echo "<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array[3].jpg\" alt=\"4\"/>";
break;
case 4:
echo "<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array[4].jpg\" alt=\"5\"/>";

default:
break;}
array[]++;
}
echo "http://131.118.95.215/users/teschlauch0/Projects/gold/\$yellow.jpg\" alt=\"5\"/>\n</ br>";
}

?>
<h2 style = "text-align:center">Pick five #s between 1-56 and one between 1-46</h2>
<form name="megamillion" action="4-2.php" method="post">
<fieldset>
<p>1-56 <input type="text" name="white"
value="white" /></p>
<input type="submit" name="enter white" value="enter white"/>
</fieldset>
</form>
<form name="submit" action="4-2.php" method="post">
<fieldset>
<p>1-46 <input type="text" name="yellow"
value="yellow" /></p>
<input type="submit" name="enter yellow" value="enter yellow"/>
</fieldset>
</form>
<form>
<fieldset>
<input type="submit" name="quick play" value="quick play"/>
</fieldset>
<fieldset>
<h2>When Done Hit Draw Below or for random #s quick play above</h2>
<input type="submit" name="draw" value="draw"/>
</fieldset>
</form>
<?php


}
$ShowForm = TRUE;

$array[] = $_POST['white'];
$yellow = $_POST['yellow'];
session_start();
if($_SESSION['white'] = $_SESSION['white'])
echo "Cannot enter same # twice";
else{
draw($array[0],$yellow);
}
if ($_POST['quick\ play']){
$yellow = rand(1, 46);
$i2 = 1;
while ($i2 ! 6){
$array[] = rand(1, 56);
$i2++;
}
draw($array[0],$yellow);
$yellow2 = rand(1, 46);
$i3 = 1
while ($i3 ! 6){
$array2[] = rand(1, 56);
$i3++;
}
draw($array2[0],$yellow2);
echo"</ br> <img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array[0].jpg\>" .
"<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array2[1].jpg\>" .
"<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array2[2].jpg\>" .
"<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array2[3].jpg\>" .
"<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array2[4].jpg\>" .
"<img src=\http://131.118.95.215/users/teschlauch0/Projects/gold/\$yellow2.jpg\>"
}
if ($_POST['draw']){
$yellow2 = rand(1, 46);
$i3 = 1
while ($i3 ! 6){
$array2[] = rand(1, 56);
$i3++;
}
draw($array2[0],$yellow2);
echo"</ br> <img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array[0].jpg\>" .
"<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array2[1].jpg\>" .
"<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array2[2].jpg\>" .
"<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array2[3].jpg\>" .
"<img src=\http://131.118.95.215/users/teschlauch0/Projects/White/\$array2[4].jpg\>" .
"<img src=\http://131.118.95.215/users/teschlauch0/Projects/gold/\$yellow2.jpg\>";
}
if ($yellow = $yellow2 & $array[1,2,3,4,5] ! $array2[1,2,3,4,5]){
echo"</ br>Pay out 2 dollars";
}
if ($yellow = $yellow2 & $array[0] | $array2[0] XOR $array[1] | $array2[1] XOR $array[2] | $array2[2] XOR $array[3] | $array2[3] XOR $array[4] | $array2[4]){
echo"</ br>3 bucks!";
}
if ($yellow ! $yellow2, if ($array[0] = $array2[0], $i++)($array[1] = $array2[1], $i++) ($array[2] = $array2[2], $i++) ($array[3] = $array2[3], $i++) ($array[4] = $array2[4],$i++)){
if ($i == 3){
echo"</ br>7 dollars nice play!";
}
}
if ($yellow = $yellow2, if ($array[0] = $array2[0], $i++) ($array[1] = $array2[1], $i++) ($array[2] = $array2[2], $i++ ($array[3] = $array2[3], $i++) ($array[4] = $array2[4],$i++){
if ($i == 2){
echo"</ br>10 dollars good win!!!";
}
}
if ($yellow = $yellow2, if ($array[0] = $array2[0], $i++)($array[1] = $array2[1], $i++) ($array[2] = $array2[2], $i++) ($array[3] = $array2[3], $i++) ($array[4] = $array2[4],$i++)){
if ($i == 3){
echo"</ br>150\$!!! dont spend it all in one place.";
}
}
if ($yellow ! $yellow2, if ($array[0] = $array2[0], $i++) ($array[1] = $array2[1], $i++) ($array[2] = $array2[2], $i++ ($array[3] = $array2[3], $i++) ($array[4] = $array2[4],$i++){
if ($i == 4){
echo"</ br>150\$!!! dont spend it all in one place.";
}
}
if ($yellow = $yellow2, if ($array[0] = $array2[0], $i++)($array[1] = $array2[1], $i++) ($array[2] = $array2[2], $i++) ($array[3] = $array2[3], $i++) ($array[4] = $array2[4],$i++)){
if ($i == 4){
echo"</ br>10 grand time for a new car !!!!!";
}
}
if ($yellow ! $yellow2, if ($array[0] = $array2[0], $i++) ($array[1] = $array2[1], $i++) ($array[2] = $array2[2], $i++ ($array[3] = $array2[3], $i++) ($array[4] = $array2[4],$i++){
if ($i == 5){
echo"</ br>250,000 in this market oyu might as well be a millionaire";
}
}
if ($yellow = $yellow2, if ($array[0] = $array2[0], $i++)($array[1] = $array2[1], $i++) ($array[2] = $array2[2], $i++) ($array[3] = $array2[3], $i++) ($array[4] = $array2[4],$i++)){
if ($i == 5){
echo"</ br></ br>!!!!!!!!!!!!!!!!JACKPOT WINNER!!!!!!!!!!!!!!!!!";
?>
</body>

</html>