$action is something that PHP automatically does for you, when you do URL.php?action=WHATEVER...it doesn't have to be action either it could be URL.php?url=WHATEVER then you would just replace $action with $url, anyways this is what I do...
PHP Code:
print "<a href=\"index.php?action=forums\">Forums</a>"
print "<a href=\"index.php?action=news\">News</a>"
then do on index.php
if ($action == "forums") {
header ("Location: h ttp://www.URL.com/forum") //redirects you to the URL
} elseif ($action == "news") {
include ("news.php") //includes the page
}
take out the space between the
h and the
ttp: hopes this helps.