Dont make your code as jumbled up as this:
if (!$username || !$password) {
echo("<form method='post' action='signin.php'>");
} elseif($action == "c" || $action == "d" || $action == "e" || $action == "f" || $action == "g" || $action == "h" || $action == "i") {
echo("<form method='post' action='" . findbattle() . ".php'><input type='hidden' name='strt' value='y'>");
} elseif($action == "b") {
die ("Sorry, dude. You're banned from this site!");
} else {
echo("<form method='post' action='game.php'>");
}
It works best when you only compare related variables.