title: how to open a new file in php by clicking on some image click
body: <p>I want to open a new window on image click. My code is:</p>
  
  <pre><code>&lt;img src="images/input.jpg" width="100" style="border-radius:20px;
  cursor:pointer;" onclick="javascript:window.open(&lt;?php echo"&lt;a
  href='data.php?id=$date&amp;id1=$d'&gt;&lt;/a&gt;"?&gt;,'','width=870,height=620');"&gt;
  </code></pre>
  
  <p>But it's not working; <code>id</code> and <code>id1</code> are not passed on to the next page to be opened.</p>
  
  <p>How can I fix this?</p>