Use php in window.location.href
===

this is my js code:  
  
    function check() {
    var delvar = "<? $_POST["del"]; ?>";
    var answer = confirm("Are you sure you want to delete the article?")
    if (answer) {
 		window.location = "adm-site.php?del=" + delvar + "&delete=true";
    }
    }
now, my problem is that the delvar does not work. so the url is just ?del=&delete=true, instead of e.g.   
?del=testarticle&delete=true  
edit: my `$_POST["del"]` is a select tag with all the articles in it, so you will choose which to delete