title: Popup window inside php code
body: <p>I'm trying to do table where pressing on ID, it opens popup window, where will be menu, for example, change row values, add comments.. 
  But I have a problem with generating link for each row:</p>
  
  <pre><code>foreach ($results as $row) {
  // Each $row is a row from the query
  $rowid = $row-&gt;ID;
  echo '&lt;tr&gt;&lt;td&gt;';
  echo '&lt;a href="#" onclick="javascript:window.open("http://192.168.210.140/todolist/controls-menu?funnelid="'.$rowid.',"Controls Menu","width= 700,height= 500,toolbar= no,location= no,directories= 0,status= no,menuBar= no,scrollBars= no,resizable= yes,left= 400,top= 150,screenX= 400,screenY= 150");"&gt;'.$rowid.'&lt;/a&gt;';
  </code></pre>
  
  <p>Maybe it's need to add </p>
  
  <pre><code>&lt;script type="text/javascript&gt;
  ... Some script when pressing &lt;a href="#"&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>But I have no idea, how to detect from script which link is pressed, for example is it </p>
  
  <pre><code>http://192.168.210.140/todolist/controls-menu?funnelid=999 
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>http://192.168.210.140/todolist/controls-menu?funnelid=1100
  </code></pre>
  
  <p><strong>P.S. I'm using Wordpress.</strong></p>