xero-infinity
4-15-02, 08:56 PM
I don't believe this is coded right or something. Help needed... Take a look at the page and then I have the code below...
http://xero-infinity.com/php/test.php
#!/usr/local/bin/php
<html><head><title>PHP Test</title></head>
<body>
<?php
if ($sect) {
include("$sect.txt");
}
else {
include("home.txt");
}
?><br>
<?php
if ($sect) {
include("$sect.txt");
}
else {
include("test.txt");
}
?><br>
<?php
if ($sect) {
include("$sect.txt");
}
else {
include("test2.txt");
}
?><br>
<?php
if ($sect) {
include("$sect.txt");
}
else {
include("test3.txt");
}
?><br>
<?php
if ($sect) {
include("$sect.txt");
}
else {
include("test4.txt");
}
?><p>
<a href="?sect=home">Home</a><br>
<a href="?sect=test">Test</a><br>
<a href="?sect=test2">Test2</a><br>
<a href="?sect=test3">Test3</a><br>
<a href="?sect=test4">Test4</a>
</body></html>
http://xero-infinity.com/php/test.php
#!/usr/local/bin/php
<html><head><title>PHP Test</title></head>
<body>
<?php
if ($sect) {
include("$sect.txt");
}
else {
include("home.txt");
}
?><br>
<?php
if ($sect) {
include("$sect.txt");
}
else {
include("test.txt");
}
?><br>
<?php
if ($sect) {
include("$sect.txt");
}
else {
include("test2.txt");
}
?><br>
<?php
if ($sect) {
include("$sect.txt");
}
else {
include("test3.txt");
}
?><br>
<?php
if ($sect) {
include("$sect.txt");
}
else {
include("test4.txt");
}
?><p>
<a href="?sect=home">Home</a><br>
<a href="?sect=test">Test</a><br>
<a href="?sect=test2">Test2</a><br>
<a href="?sect=test3">Test3</a><br>
<a href="?sect=test4">Test4</a>
</body></html>