infact the problem is still there.. i tried every thing.. but could not.... solve it
<?
$referer = str_replace ("http://", "", @$_SERVER['HTTP_REFERER']);
$referer = explode ("/", $referer);
print $referer[0];
if ($referer[0]=="iftikhar.comsats.net.pk")
{
$style= "pesstyle.css";
$chgpwdlink="http://iftikhar.comsats.net.pk/chgpwd.htm";
}
else if ($referer[0]=="atk.comsats.net.pk")
{
$style="atkstyle.css";
$chgpwdlink="http://atk.comsats.net.pk/chgpwd.htm";
}
?>
<body>
<?
include 'http://server/styles/main1.php';
?>
</body>
This was all in the main file....
Included FILE
<a href="<? echo $chgpwdlink; ?>" class="main">Change Password</a>,
it makes the link as.....
http://server/styles/<br%20/><b>Notice</b>:%20%20Undefined%20variable:%20%20chgpwdlink%20in%20<b>E:/Sites/Style%20Sheets/main1.php</b>%20on%20line%20<b>72</b><br%20/>
which is... the Variabe not Defined.....
🙁
Noman