Here is the code for the index page of my chat site:
<html>
<head>
<meta name="keywords" content="chat, Sims, Sims 2, Sims 2 movies, movies, Sims99, ms510, ms creashuns, mastersimmer510, mastersimmer">
<meta name="description" content="The MS Creashuns Chat Room is a place for Sims 2 fans can come and chat with people with a common interest.">
<title>MS Creashuns Chat Room</title>
<link rel="stylesheet" type="text/css" href="chat.css">
</head>
<body>
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr><td class="all" background="#990000">
<table class="all" style="background:transparent;" align=center cellspacing=0 cellpadding=0>
<tr>
<td><h1>MS Creashuns Chat Room</h1></td>
<td align=right><img src="images/logo.gif" ALT="MS Creashuns Chat Room" width=115 height=115></td></tr></table></td></tr>
<tr><td><table border=0 style="background:transparent;" align=center cellspacing=0 cellpadding=0 width=100%><br></table></td></tr>
<tr width=50%><td>
<table class="all" style="background:transparent;" align=center cellspacing=0 cellpadding=0>
<tr>
<td class="all1" valign=top>
<p><font size=4>NAVIGATE</font><br><br>
<a href="index.php" title="Home">Home</a><br>
<a href="index.php?page=rules" title="General Rules">Rules</a><br>
<a href="index.php?page=faq" title="FAQ">FAQ</a><br>
<a href="chat/" title="Go Chat">Enter the Chat</a></p></td><td class="all2" valign=top>
<?
if ($page == "") {
include("announcements.txt"); } else {
include("$page.txt"); }
?>
<hr noshade color=white width=75%></td></tr>
</table></td></tr>
</table>
</body>
</html>
I know most of it isn't even PHP, but the part that is, is that a good idea? Basically what it does is uses the GET method to choose what text is displayed in the body of the page. If you want to see the actual thing, go here. If you click the links to the left, you will see that the main content changes, but the URL is not much different, it just adds "?page=(page_name)" to the end. Is this a good idea, or not? I know I could use includes to make everything but the content the same on each page, but this way I never have to modify this page, just the individual text files. Thanks! 😃