title: Pass PHP Variable into Java Script window.location
body: <p>I am trying to pass a php variable into a java script window.location that returns a user to the current list view after deleting an item from the database. I can't seem to get the syntax correct.</p>
  
  <p>Code:</p>
  
  <pre><code>function confirmation(a) {
  var currString = "&lt;? echo $currString ?&gt;";
  var answer = confirm("Are you sure you want to delete this item?")
  if (answer){
      alert("The item has been deleted")
      window.location = "list.php?s='. $currString .'&amp;=delete=true&amp;id=" + a;
  }
  else{
      alert("The item has not been deleted")
  }
  </code></pre>