Re: template problems

From: Date: Thu, 18 Sep 2003 11:38:54 +0000
Subject: Re: template problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162988@lists.php.net to get a copy of this message
In article <20030917155438.37893.qmail@pb1.pair.com>, simon_whiston@hotmail.com says... > hi, > > I've got this problem when using templates on my localhost. The code works > on my web server which i rent so the code is fine. I have ran php code for > mysql functions and other for testing purposes. > > Below is the code i used in index.php. > > 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 !. > > Could anybody help me with this problem because i wanted the localhost for testing purposes. Is it possible that localhost has register_globals set off? In which case you need switch($_GET{'page}) { -- Quod subigo farinam A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet?

« previous php.general (#162988) next »