php code for Page ID
Posted On at by milan
First. Create the page you want to do the ?id=(number or variable here).
Ill do index.php.
---------------
$id = $_GET['id'];
if($id == 1){
echo "Welcome to the first page!";
}
if($id == forums){
echo "Redirecting you to the forums...please wait.
http-equiv=refresh content=5; url=http://your_domain.com/forums>";
}
?>
---------------
You can add content to the top or bottom or middle of every page by putting text between the if($id's.
You can obviously create more by copying the
if($id == forums){
echo "Redirecting you to the forums...please wait.
http-equiv=refresh content=5; url=http://your_domain.com/forums>";
}
and editing it accordingly.
PHP Free Code