Help with Java Redirect

Discussion in 'Cloaking and Content Generators' started by renxiii, Jun 18, 2009.

  1. renxiii

    renxiii Newbie

    Joined:
    May 7, 2008
    Messages:
    17
    Likes Received:
    4
    Please help me w/ my java script redirect.
    how do I use a php variable for a java script redirect?

    ex. <? $link = ("h**p://site.com/"); ?>
    <script type="text/javascript">
    <!--
    window.location = "<?$link?>"
    //-->
    </script>

    is this possible? or i am wrong?

    I need this so i can set a global variable to dynamically redirect pages to different urls.