Re: [PHP] template problems

2003-09-18 Thread Daniel Souza
'news.txt', 'codestuffs' => cstuffs.txt', 'tits' => 'porn.txt', ); $page = $_REQUEST['PAGE']; include(((!isset($pages[$page])) ? $pages[$page] : "error.txt")); ?> =) Daniel Souza -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] template problems

2003-09-17 Thread Jay Blanchard
[snip] default : include "error.txt"; break; case "screenshots" : include "news.txt"; break; [/snip] And always put default case last -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] template problems

2003-09-17 Thread Jay Blanchard
[snip] INDEX.PHP 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 Genera