First of all, here's my code:
<?php
if ($action == "viewallgames" ) { require "viewallgames.php"; }
elseif ($action = "viewdownloads" ) { require "viewdownloads.php"; }
elseif ($action = "viewlinks" ) { require "viewlinks.php"; }
elseif ($action = "viewreview" ) { require "viewreview.php"; }
else { echo '<p align="center"><font color="#FFFFFF" size="5"><u>RapMonkey GameCenter News</u></font>
<p align="center"><font color="#FFFFFF" size="3">07.30.02 - The RapMonkey Gaming Labs & Gamecenter sites are launched!</font>
<p align="center"><font color="#FFFFFF" size="3">07.30.02 - Quiz added. <a href="http://www.rapmonkey.com/quiz/pcgamer.htm">Are You The Ultimate PC Gamer?<p>'; }
?>
This code executes, but dispite the if and elseif statements, when there is no $action variable supplied, it acts as if $action = "viewallgames". Why is this doing this? It should work!