View Single Post
  #7 (permalink)  
Old Aug 2nd, 2007, 14:43
karinne's Avatar
karinne karinne is offline
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: IF value entered is nothing?

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?
};
}
Reply With Quote