title: how to redirect php page with parameters into new tab or window
body: <p>I have print option in my application. When user click on print button the print page should be open in another tab/window.</p>
  
  <p>Again I am sending some parameters with print page as it contain dynamic values.</p>
  
  <p>to do so i have used php header as</p>
  
  <pre><code>header("location:Delivery_form.php?cnno=$cnno&amp;copies='$nocopy'");
  </code></pre>
  
  <p>but it is redirecting in parent page. and javascript window.open as</p>
  
  <pre><code>echo "&lt;script type=\"text/javascript\"&gt;".
          "window.open('Delivery_form.php?cnno='".$cnno."&amp;copies=".$nocopy ")".
               "&lt;/script&gt;";
  </code></pre>
  
  <p>please help me to achieve this funcnality.</p>