Im trying to reirect after a user gets a certain condition and carry over two variables to the redirect page. Heres the script, I think Im going to have to convert a php variable to a javascript variable
can anyone help me? Ive looked around on the web for a while and cant find a solution
PHP:
$page = $_GET['page']
$attack = $_POST['attack'];
printf("<script>location.href='victory.php?attack=$attack&page=$page'</script>");
can anyone help me? Ive looked around on the web for a while and cant find a solution