I want user when click download it should verify URL and redirect to another page... where is the error please help me This is an Activation URL that user receive on email: http://members.growthrank.com/confirm-email/?url=http://feedburner.google.com/fb/a/mailconfirm?k=WkgxvBGhyG3OhX4Hswo5kOQ8Kc4 PHP: Header TAG: <body <?php body_class(); ?> <?php if($post->ID == '180'){ ?>onLoad='urlAssign()'<?php } ?> > PHP: Content Code: Click Below <a id="sub_link" onclick="frmsubmit()" href="javascript:;" target="_blank"> Download </a> PHP: Footer TAG —–start code——- <?php if($post->ID == '180'){ ?> <script type=”text/javascript”> function frmSubmit(){ window.location='pottyblog.biz/wp-profiteer.zip'; } function urlAssign(){ document.getElementById('sub_link').href=document.getElementById('fb_url').value; } </script> <input type='hidden' name='fb_url' id='fb_url' value="<?php echo $_REQUEST['url']; ?>" /> <?php } ?> —–end code——- PHP:
put <input type='hidden' name='fb_url' id='fb_url' value="<?php echo $_REQUEST['url']; ?>" /> before <script> tag: <input type='hidden' name='fb_url' id='fb_url' value="<?php echo $_REQUEST['url']; ?>" /> <?php if($post->ID == '180'){ ?> <script type=”text/javascript”> function frmSubmit(){ window.location='pottyblog.biz/wp-profiteer.zip'; } function urlAssign(){ document.getElementById('sub_link').href=document.getElementById('fb_url').value; } </script> <?php } ?>
It working at me: http://zodumil.com/popunder/test.php?url=http://feedburner.google.com/fb/a/mailconfirm?k=WkgxvBGhyG3OhX4Hswo5kOQ8Kc4 See page source You have one error here : <a id="sub_link" onclick="frmsubmit()" .. it should be <a id="sub_link" onclick="frmSubmit()" ...
I recommend you to check is it real with PHP code. <?php #CHECKING if($SOMETHING == TRUE) { ?> <script type="text/javascript"> window.location = "http://www.yoursite.com/filename.rar" </script> <?php } else { #NOT GOOD die("Hacking attempt!"); } ?> PHP: Hope it helps!
this symbol make you problems: ” so instead <script type=”text/javascript”> use <script type='text/javascript'> and it will work, just tested.