PDA

View Full Version : PHP Pages



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.

LegendOfNoob
05-12-2007, 04:28 AM
its a code that locates all the pages on one page that creates external links to the page after the ?

google it or such i dont know exactly the code

Invent or some other php coders like Cj555 should know

Verrou
05-12-2007, 05:24 AM
Ok... Where for art thou Simon! LOL

Chippiewill
05-12-2007, 06:28 AM
goto tutorials section, its the last item on there

Verrou
05-12-2007, 07:57 AM
Nvm
http://i****curo.com/tutorials/read/16/

Thanks fo ur help though +rep

Want to hide these adverts? Register an account for free!