Hey im pretty new to this but i figured out how to do a php theme selection script without copying an pasting anything finally :-) and it sort of worked before but then i tried to get it going the way it should be but i keep having a problem with something and i cannot figure it out for the life of me so heres the code and the error i get.
<?
$theme2 = $_GET['red'];
$headfoot2 = include("index.php");
$theme = $_GET['green'];
$headfoot = include("green_index.php");
if($theme == $_GET['green'])
{
$headfoot;
}
else($theme2 == $_GET['red'])
{
$headfoot2;
}
?>
The idea of this script is so people can choose bettween different themes on my website. And yes the names of the 2 selections from the drop down box are named green and red, so thats not the prob and here is the error message.
Parse error: parse error, unexpected '{' in C:\Documents and Settings\Ad\My Documents\apache_server\theme.php on line 11
any help would be greatly appreciated, and no im not asking for to write another theme selection script that works, just help me to fix mine because im sik of copying an pasting code an i want to actually learn something about php.