Our Affiliates
Use this quick and easy method if you want to replace the content area of your homepage with your links, making updating easy. The url will look like..
http://yoursite.com/index.php?s=gallery
First, make sure your homepage url ends with .php (eg. index.php), then find where your content area is, inside your html code where you want the pages of your site to apear. Insert the following there...
<?
if($s=="gallery"){
include("gallery.html");
}
elseif($s=="about"){
include("about.html");
}
elseif($s=="contact"){
include("contact.html");
}
//if no page is defined, then display your main content...
else{
include(news.php);
}
?>
You can then replace the files, and edit it to match the pages of your site. This is how it works... The script gets the variable from the url which is $s, it then includes the corresponding .html file. eg... index.php?s=about will include about.html
http://yoursite.com/index.php?s=gallery
First, make sure your homepage url ends with .php (eg. index.php), then find where your content area is, inside your html code where you want the pages of your site to apear. Insert the following there...
<?
if($s=="gallery"){
include("gallery.html");
}
elseif($s=="about"){
include("about.html");
}
elseif($s=="contact"){
include("contact.html");
}
//if no page is defined, then display your main content...
else{
include(news.php);
}
?>
You can then replace the files, and edit it to match the pages of your site. This is how it works... The script gets the variable from the url which is $s, it then includes the corresponding .html file. eg... index.php?s=about will include about.html



