0

I am totally a newbie.. here is the code i have it working on another site or two but now it won't work here.. what am I doing wrong?
<?php
//we need to set a var to find what page we are on
$pageOn = basename($_SERVER);
//this is used for the title bar
$mItem = $pageOn;
?>
<title>new|innovative technology | HVAC systems|VairTEX Canada Inc| <?=$mItem;?></title>
{headtag}

<body>
<?php
echo $pageOn;
?>

Edited by theMuffin: I forgot the last bit

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by theMuffin
0

Looks like you're using short tags. They don't work on every server - depends on the php settings.

<?=$mItem;?>

Do

<?php echo $mItem;?>

Instead.

I don't understand why you're doing this:

$mItem = $pageOn;

Why not just use $pageOn?

0

Thanks I figured out I was actually using 2 parts of different php bits.. duh.. blonde moment..

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.