I need a litte help please. The following code runs perfectly on my IIS server running PHP 4.3.2.
--
<!--Main Content Starts -->
<?php
// This code replaces the paging content using the pageid parameter
// Syntax is: "index.php"
// or
// "index.php?pageid=hello"
//
// All content pages are stored in the pages subdirectory
//
// the path to the folder where the page-files are situated
$inc_path = "./pages/";
// Was the parameter pageid given?
if(isset($GET['pageid']))
{
// check if the page exists
if(!file_exists($inc_path.$GET['pageid'].'.php'))
{
// print an error
echo "<font color=\"red\">The given pageid is not valid.</font>\n";
}
else
{
// include the data in the file
include($inc_path.$_GET['pageid'].'.php');
}
}
else
{
// check if the page exists
if(!file_exists($inc_path.'welcome.php'))
{
// print an error
echo "<font color=\"red\">The given pageid is not valid.</font>\n";
}
else
{
// include the data in the file
include($inc_path.'welcome.php');
}
}
?>
<!--Main Content Ends -->
When I run it on this sites: http://johntgiles.coolfreepage.com/
The $_GET function does not return anything. Any ideas?