Verrou
05-12-2007, 01:21 AM
I've seen it on some sites, but up in the address bar it's like index.php?page=home or whatever, and i was wondering how to do that?
This is what i've tried so far:
index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php
include("pages.php");
$page = $_GET['page'];
?>
<table width="474" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="133"><table width="133" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="133"><a href="site.php?page=home">Home</a></td>
</tr>
<tr>
<td>About Us </td>
</tr>
<tr>
<td>Contact</td>
</tr>
<tr>
<td>Disclaimer</td>
</tr>
</table></td>
<td width="341">
<?php
include("$page");
?></td>
</tr>
</table>
</body>
</html>
pages.php
<?php
$home = home.php;
$about = about.php;
$contact = contact.php;
$discaimer = disclaimer.php;
?>
home.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<font face="Verdana" size="1"><strong>Hello and welcome to Habbo Eden!</strong></font>
</body>
</html>
If someone can help please reply.
Thanks,
Ver.
This is what i've tried so far:
index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<?php
include("pages.php");
$page = $_GET['page'];
?>
<table width="474" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="133"><table width="133" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="133"><a href="site.php?page=home">Home</a></td>
</tr>
<tr>
<td>About Us </td>
</tr>
<tr>
<td>Contact</td>
</tr>
<tr>
<td>Disclaimer</td>
</tr>
</table></td>
<td width="341">
<?php
include("$page");
?></td>
</tr>
</table>
</body>
</html>
pages.php
<?php
$home = home.php;
$about = about.php;
$contact = contact.php;
$discaimer = disclaimer.php;
?>
home.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<font face="Verdana" size="1"><strong>Hello and welcome to Habbo Eden!</strong></font>
</body>
</html>
If someone can help please reply.
Thanks,
Ver.