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.
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.