i have a parse error and i just cant figure out what it is because it seems my code is right but maby im wrong any advise is apreciated aswell heres my code
<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="en" lng="en">
<head>
<title> Background Colors </title>
</head>
<body>
<?php
$zero = '<style type="text/css">
body {
background-color: #808080;
} </style>';
$purple = '<style type="text/css">
body {
background-color: #800080;
} </style>';
$blue = '<style type="text/css">
body {
background-color: #0000ff;
} </style>';
$green = '<style type="text/css">
body {
background-color: #008000;
} </style>';
$yellow = '<style type="text/css">
body {
background-color: #ffff00;
} </style>';
$orange = '<style type="text/css">
body {
background-color: #ef9c00;
} </style>';
$red = '<style type="text/css">
body {
background-color: #ff0000;
} </style>';
$black = '<style type="text/css">
body {
background-color: #000000;
} </style>';50
$white = '<style type="text/css">
body {
background-color: #ffffff;
} </style>';
$purple_text = '<style type="text/css">
p {
color: #800080;
} </style>';
$blue_text = '<style type="text/css">
p {
color: #0000ff;
} </style>';
$green_text = '<style type="text/css">
p {
color: #008000;
} </style>';
$yellow_text = '<style type="text/css">
p {
color: #ffff00;
} </style>';
$orange_text = '<style type="text/css">
p {
color: #ef9c00;
} </style>';
$red_text = '<style type="text/css">
p {
color: #ff0000;
} </style>';
$black_text = '<style type="text/css">
p {
color: #000000;
} </style>';
$white_text = '<style type="text/css">
p {
color: #ffffff;
} </style>';
$brown = '<style type="text/css">
#text {
border-width: 5px;
border-style: dashed;
border-color: #660000;
width: 370px;
} </style>';
$pink = '<style type="text/css">
#text {
border-width: 5px;
border-style: dashed;
border-color: #ff00cc;
width: 370px;
} </style>';
$color = $_POST['color'];
$click = $_POST['click'];
$textcolor = $_POST['textcolor']
if ( $color == 0 ) { echo " {$zero} <p> you are vewing the default page or have refreshed the page while no
information has been sent so the page is now grey </p>"; }
if ( $color == 1 ) { echo"{$purple}"; }
if ( $color == 2 ) { echo"{$blue}"; }
if ( $color == 3 ) { echo"{$green}"; }
if ( $color == 4 ) { echo"{$yellow}"; }
if ( $color == 5 ) { echo"{$orange}"; }
if ( $color == 6 ) { echo"{$red}"; }
if ( $color == 7 ) { echo"{$black}"; }
if ( $color == 8 ) { echo"{$white}"; }
if ( $textcolor == 1 ) { echo"{$purple_text}"; }
if ( $textcolor == 2 ) { echo"{$blue_text}"; }
if ( $textcolor == 3 ) { echo"{$green_text}"; }
if ( $textcolor == 4 ) { echo"{$yellow_text}"; }
if ( $textcolor == 5 ) { echo"{$orange_text}"; }
if ( $textcolor == 6 ) { echo"{$red_text}"; }
if ( $textcolor == 7 ) { echo"{$black_text}"; }
if ( $textcolor == 8 ) { echo"{$white_text}"; }
if ( $click == 1 ) { echo"{$brown}"; }
if ( $click == 2 ) { echo"{$pink}"; }
?>
<p>select a color for the background you want</p>
<form action="backgroundcolors.php" method="post">
<select name="color">
<option value="1">Purple</option>
<option value="2">Blue</option>
<option value="3">Green</option>
<option value="4">Yellow</option>
<option value="5">Orange</option>
<option value="6">Red</option>
<option value="7">Black</option>
<option value="8">White</option>
</select>
<select name="textcolor">
<option value="1">Purple</option>
<option value="2">Blue</option>
<option value="3">Green</option>
<option value="4">Yellow</option>
<option value="5">Orange</option>
<option value="6">Red</option>
<option value="7">Black</option>
<option value="8">White</option>
</select>
<input type="radio" name="click" value="1" />brown
<input type="radio" name="click" value="2" />pink
<input type='submit' name='submit2' value='Submit' />
</form>
<p id="text"> This is a cool page that im testing and messing with i think its verry cool how im learnign all
this stuff its prety rad if you didnt know :) wll anyways i like tacos and i dont know what your like but pizza is
yummy so try that while i eat my taco then we can trade for a bit o w8 that would be a bit nasty o well yeah
food yummmmmm.......php........html.......css</p>
</body>
</html>