wrigh_g
01-24-2004, 05:39 AM
Can anybody help me with this problem.
I want to display all webpages as .txt files to eliminate the use of frames. However, i have come across a problem.
I want the page to display welcome.txt as soon as the page loads, but also get a variable when a link is clicked so it goes to another .txt file.
I think it has something to do with a IF statement but i can't get to to work.
Here is my script ATM:
<?PHP
IF(@$name=$_GET('name')){
if($name=""){include("welcome.txt");
} else {
include("$name.txt");
}
} else {
echo('Unable to connect to the server');
}
?>
I want to display all webpages as .txt files to eliminate the use of frames. However, i have come across a problem.
I want the page to display welcome.txt as soon as the page loads, but also get a variable when a link is clicked so it goes to another .txt file.
I think it has something to do with a IF statement but i can't get to to work.
Here is my script ATM:
<?PHP
IF(@$name=$_GET('name')){
if($name=""){include("welcome.txt");
} else {
include("$name.txt");
}
} else {
echo('Unable to connect to the server');
}
?>