this is a tutorial on how to use this functions with php
good for those that want to have there site and not have like
site.com/chat.php
when u can have like index.php?page=Chat and so on..
ok lets start..
First we create a page like index.php or something ..
add this code..
<?php
// we start the switch u can change page to anything u want
switch ($page) {
case "chat":
echo "chat tesasdasdas
dasdasdasd";
// this will be the chat stuff add all the stuff here codem images etc,,
break;
case "contact":
echo "contact content here..";
/content here code etc.
break;
case "forums":
echo " this is forums page <a href=\"index.php\">go back</a>";
/forums page..
break;
default:
// the default page.. where it will be the main index
echo "Testing go <a href=\"index.php?page=chat\">to page chat </a> <a href=\"index.php?page=forums\">Forums</a>";
// code here etc..
break;
}
// we end this function..
?>
remember u can add other functions like chat();
and so on..
so more dynamic..
to call a page simply link like this
index.php?page=Chat and so on.. replace the chat with your own page name..
enjoy
Tutorial by Miguel
http://www.laplebada.net