I’m unable to invoke the JS function being rendered from my PHP code, which is supposed to redirect the user after a specified duration.
first I'm not a programmer or coder, so I'm searching here for help to correct maybe a corrupted redirecting code, I used along ago but it doesn't work now. Maybe there is something changed in the code without I know.
<?php
if(isset($_GET['url'])){
if(isset($_GET['d']) && $_GET['d'] == 1){
$TheFullURL = '<a href="'.base64_decode($_GET['url']).'"><b><span style="font-size:10pt;"><font color="red">Download Here</font></span></b></a>';
}else{
$TheFullURL = '<a href="?url='.$_GET['url'].'&d=1"><b><span style="font-size:10pt;"><font color="red">Click Here</font></span></b></a>';
}
//--------By:hadutta.com --------//
$wait_time = 15 ;
$TheFullURL = '<!-- By:hadutta.com -->
<div id="waiting_FullURL" >Please Wait ...</div>
<script type="text/javascript">
<!--
function FullURL(secs){
secs--;
if(secs>0){
document.getElementById("waiting_FullURL").innerHTML = \'Please Wait ...\' + secs
window.setTimeout("FullURL("+secs+");",6000);
} else {
document.getElementById("waiting_FullURL").innerHTML = \''.$TheFullURL.'\';
}
}
FullURL('.$wait_time.');
// -->
</script>
}
?>
please, help I've no idea about coding, I'm just a user. Thanks
</div>