Thread: If Statements
View Single Post
05-21-2008, 06:53 PM
#8
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

On each page that the user is on, have something like
PHP Code:
<?php $url="home.html"?>
and then on the header
PHP Code:
<?php
if($url == "home.html")
{
echo 
"Home code";
}
else if(
$url == "about.html")
{
echo 
"About code";
}
?>