Hi! I was wondering if you guys could help me with this script......
I have a Javascript that redirects to a page if the address bar does not display the page stated. If not, then it redirects to the stated page:
<script language="JavaScript">
if (top.location.href != "http://johnex.se/?area=files"){
top.location.href = "http://johnex.se/?area=files";
}
</script>
I need to make this script in php, but i don't know how. I do know that you can implement the code like this:
<?
print<<<HTML
<script language="JavaScript">
if (top.location.href != "http://johnex.se/?area=files"){
top.location.href = "http://johnex.se/?area=files";
}
</script>
HTML;
?>
BUT THAT IS NOT WHAT I NEED.......
I need it to be pure php power 😛, or else it will give me javascript error on the page i need to use it......🙁
Thanks in advance,
Johnex
http://johnex.se/ - Johnex Portal v3.0
"the best entertainment portal"
Games, Chat, PM, Files.
950+ Polyphonic Ringtones
500+ IMY Ringtones
50+ Pictures
10+ Themes
*´¨)
¸.·´¸.·´¨) ¸.·->
(¸.·´ (¸.·´