lets start.
while surfing about the internet youve most proberly taken time to look at a URL. for example the url of this current page is http://www.gaiaonline.com/guilds/posting.php?mode=newtopic&f=85527
but also you could be on a page where the URL happens to be something like http://www.gaiaonline.com/guilds/posting.php?mode=edit&p=96927044.
From looking at these you sould notice that both these pages are run from the same webpage (posting.php) the strings after this tell the webapge to load up a particluar part being 'mode=edit&p=96927044' part or the 'mode=newtopic&f=85527' part.
This can be done with the use of the switch function the superglobal $_GET. (if you want to learn more about superglobals read up on it here).
The $_GET superglobal is used to find the values of the various variables following the page. Heres and example
$x=$_GET['x']
//if the url for this page is http://www.example.com/index.php?x=4 then the variable $x will now equel 4
?>
...that may of made sense ill change it later if it didnt but know onto the switch variable.
when the switch variables in use it sould look something like
switch($_GET[act])
{
case '';
echo "act is nothing";
break;
case '1';
echo "act is one";
break;
}
?>
the break; tag is used to tell the browser when to stop reading if any one of the cases are correct if i didnt use break; if $_GET[act] = '' then both 'act is one' and 'act is nothing' would be displayed.
you can have as meny cases as you wish you can also put switches inside othe switches.
Hope that made some sense atleast anyway im board and tired now bye.