Forum Moderators: phranque
Yes, you can do that, but it's generally less organized. You'd also need to use a variable in the url so that the server would know which page to show. The url would look like www.example.com/index.php?c=1 and in the PHP script, the "1" would be stored in the variable $_GET['c']. The "?c=1" would make the pages much less attractive to search engines.
And, while they look like normal html pages to the user, they are really php scripts in disguise. Apache's Mod_Rewrite is your friend in that situation.
Almost forgot.. Welcome to WebmasterWorld InfaredFog.
<?
if (!(array_key_exists("module",$_REQUEST)))
{
$module="home";
$l="?";
}
else {
$module=$_REQUEST["module"];
}
?>
and
<a href="?module=home">home</a> ¦
<a href="?module=aboutus">about us</a> ¦
<a href="?module=howtojoin">how to join</a> ¦
<a href="?module=ourteam">our team</a> ¦
<a href="?module=forum" target="_blank">forum</a> ¦
<a href="?module=partners">partners</a> ¦
<a href="?module=resources">resources</a> ¦
<a href="?module=portfolio">portfolio</a>
is the main PHP part in my site.