if statement switch
<pre><code>&lt;?php

if ($_GET['user_id']) $content = $_GET['user_id'];
else $content = $_GET['content'];


switch($content) {

//The default page
default:
include_once('main.php');
break;

//The news related stuff
case 'news':
include_once('news.php');
break;

//Show the profile of a user
case 'user_id':
include_once('profile.php');
break;
 }
?&gt;
</code></pre>

<p><code>index.php?user_id=id</code> won't work. Any ideas?</p>
