[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; 
} 

?> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to