simple script - not working
Posted: Wed Jan 04, 2006 4:26 pm
hi guys,
been a while since i did some php work and having a wee problem getting this simple script to work.
its not putting: id="current" into my list when its on that page.
its not
i have this in my main body
and this in the menu.php
now i know this is a long way of doing it.. i am going to have a lot of if and else statments in my menu once i have finished...i should using SWITCH statments but i wanna get this working first i guess.
thanks guys any help would be great!
been a while since i did some php work and having a wee problem getting this simple script to work.
its not putting: id="current" into my list when its on that page.
its not
i have this in my main body
Code: Select all
$pageis = 'alc_sum_01';
include("menu.php");and this in the menu.php
Code: Select all
if($pageis =="alc_sum_01")
{
print('<li><a href="/html/summer/alc_sum_01.php" onfocus="this.blur()" id="current" title="Greaser Tee">Greaser Tee</a></li>');
}
else
{
print('<li><a href="/html/summer/alc_sum_01.php" onfocus="this.blur()" title="Greaser Tee">Greaser Tee</a></li>');
}now i know this is a long way of doing it.. i am going to have a lot of if and else statments in my menu once i have finished...i should using SWITCH statments but i wanna get this working first i guess.
thanks guys any help would be great!