title: Open a php page from javascript function
body: <p>I have a php page, first.php and I want to open the page with passing some arguments from a javascript function. Could you please help me, thanks.</p>
  
  <pre><code>function() {
      var tableName = "&lt;?= $p ?&gt;"; //obtaining the value from another php file
      var checkB = checkbox_form.checkbux[counter].value;
      window.open('"http://localhost/first.php?q="+checkB+"&amp;p="+tableName', '_self');
  }
  </code></pre>
  
  <p>But I am not able to open the page, please help. Thanks in advance.</p>