Serge
08-18-2002, 11:07 PM
I'm trying to run the following script to change in and out the content of my pages:
<?php
switch($nav)
{
case "about":
include ('about.txt');
break;
case "forums":
include ('forums.txt');
break;
case "contact":
include ('contact.html');
break;
case "staff":
include ('staff.txt');
break;
case "links":
include ('links.txt');
break;
case "downloads":
include ('downloads.txt');
break;
case "projects":
include ('projects.txt');
break;
default:
include ('news.txt');
}
?>
Just some fyi before I talk about my problem news.txt is part of a cgi script to right news it is updated though a cgi script. Ok well when I click forums. about, and contact it just continues to go back to news.txt you can see what I mean by going to www.surrix.net and clicking the three. Now I have the contact.html page uploaded to the webserver the rest I don't have but I can't get why it won't take me to the contact.html page. Can anyone help
Thanks,
Serge
<?php
switch($nav)
{
case "about":
include ('about.txt');
break;
case "forums":
include ('forums.txt');
break;
case "contact":
include ('contact.html');
break;
case "staff":
include ('staff.txt');
break;
case "links":
include ('links.txt');
break;
case "downloads":
include ('downloads.txt');
break;
case "projects":
include ('projects.txt');
break;
default:
include ('news.txt');
}
?>
Just some fyi before I talk about my problem news.txt is part of a cgi script to right news it is updated though a cgi script. Ok well when I click forums. about, and contact it just continues to go back to news.txt you can see what I mean by going to www.surrix.net and clicking the three. Now I have the contact.html page uploaded to the webserver the rest I don't have but I can't get why it won't take me to the contact.html page. Can anyone help
Thanks,
Serge