Be with friends! Join NeoExtreme’s forum to discuss Neopets, find tips and tricks, and to have fun! Jump to the forums or if want to know more, read our tutorial!

Absolute Path

Last updated 18 Sep 2005
Thank you for using our NeoExtreme tutorials! We are pleased to know that we have helped you in some way today. If you have any questions or concerns about our tutorials, please contact us.

Tutorial

Now for what you came for!
Would you like to know how to do index.php?go=pagename for your site? It is a lot easier than pagename.php, or pagename.html, including iframes.
ALL FILES MUST BE NAME.PHP! MUST BE ALL PHP FILES.

<?PHP error_reporting (E_ALL ^ E_NOTICE);
if(!$go){ $go = $HTTP_GET_VARS['go']; }

if($go=="" or $go=="FILENAME"){
include("MAINPAGE.PHP");
}elseif($go=="FILENAME"){
include("FILE.PHP");
}
?>

If you want to add more pages...

}elseif($go=="FILENAME"){
include("FILE.PHP");

Now when you're doing a link, use:

<a href="?go=FILENAME"> Name of link<a>

Neoextreme is proud to be sponsored by Budgethost.ca. Check out Budgethost.ca to get the best deals for your website!