There's an else { } too many ... at the bottom?! and a few things wrong.
Here's what I got when removing the echo's
- PHP: Select all
<?php
if (isset($gamertag)) {
$answer = $_POST['style'];
if($answer == "Homecourt #1"){
include("code/homecourt1.php");
echo ("<br><br><br>");
include("code/getform.php");
} elseif ($answer == "Gears Of War #1") {
include("code/gearsofwar1.php");
echo ("<br><br><br>");
include("code/getform.php");
} elseif ($answer == "GTA IV #1") {
echo "There is no GTA IV #1";
}
else {
echo ("Error, please go back and try again");
};
}
else {
echo "Please Enter your Gamertag";
}
?>
You're
echo ("<br><br><br>"); shouldn't have the () wrapping the text
What's this?
};
}