Query Strings Question [read before locking/deleting]
Ok:
switch( $_GET['page'] ) {
case 'news' :
include 'news.php';
break;
case 'portfolio' :
include 'portfolio.php';
break;
default:
include 'news.php';
break;
}
now how do I make like a index.php?page=news&pagetype=viewnews or something like that with the coding above (with the default function so when they go to index.php it would pull up news)? That coding above only produces index.php?page=news
I asked you something like this before, but it never got answered.
I could use something like this:
PHP:<?php
if($_GET['type'] == "guides" && $_GET['id']== "ahugeguide")
{
include 'myfilehere.php';
}
?>
However, that doesn't include that "default" function... which is what I want?
SO: basically how can I produce a "somepage.php?page=this&id=that" query string WITH THE "DEFAULT" FUNCTION?
Get it? Errr, sorry if it's long and confusing.... heheh


