else
{
echo("$from<br>");
if ($from = "")
{
echo("You may not directly enter this page, please <a href='http://www.onecardexpress.net/distributor/login.html'>login here.</a>");
exit;
}
if ($from != 'http://www.onecardexpress.net/distributor/login.html')
{
echo("You may not directly enter this page, please <a href='http://www.onecardexpress.net/distributor/login.html'>login here.</a>");
exit;
}
if ($from = "http://www.onecardexpress.net/distributor/login.html")
{
echo("<table bgcolor=orange cellpadding=0 cellspacing=0 border=0 width=100%>
<tr>
<td align=center>Header Information</td>
</tr>
</table>
<table cellpadding=5 cellspacing=0 border=1>
<tr>
<td valign=top width=25% bgcolor=green>Can place horoscope, weather and news info here</td>
<td valign=top width=50%>User: <? echo('$Loginusername'); ?> logged in</td>
<td valign=top width=25% bgcolor=green>Can place sports and other info here info here</td>
</tr>
</table>");
}
}
Right after my else within the first two if's I get an error. When my referer does equal the address I have there, it still gives me the error. Why does it do that?
My result is always:
You may not directly enter this page, please login here.
Anyone have an answer?