RE: [PHP] template problems

From: Date: Wed, 17 Sep 2003 17:23:00 +0000
Subject: RE: [PHP] template problems
Groups: php.general 
Request: Send a blank email to php-general+get-162900@lists.php.net to get a copy of this message
[snip] INDEX.PHP <?php switch ($page) { default : include "error.txt"; break; case "screenshots" : include "news.txt"; break; } ?> When i type say www.myrentedwebsite.com/index.php?page=main it will display the page main.txt When i try this on my localhost it displays the error.txt file instead. It doesn't recognize the index.php?>?PAGE=MAIN i think !. [/snip] Try this and report back <?php switch ($_GET['page']) { default : include "error.txt"; break; case "screenshots" : include "news.txt"; break; } ?>

« previous php.general (#162900) next »