title: How to Get Variables using Pop Ups in PHP?
body: <p>I am new in PHP. I have two files. <code>file_upload.php</code> and <code>test1.php</code> i have a button on <code>file_upload.php</code></p>
  
  <pre><code>&lt;input type="button" value="Link More Opinion" onclick="popUp('test1.php');" /&gt;
  </code></pre>
  
  <p><strong>JavaScript of that Button</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function popUp(url) {
  window.open(url,'PHP Pop Up','width=500,height=500');
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>When i click on Button <code>test1.php</code> file is open in  Pop Up window  contain checkbox</p>
  
  <p>Here is code</p>
  
  <pre><code>&lt;?php
  
  include "connection.php";
  $sql= "SELECT * FROM `og_companies` ORDER BY name";
  $result  = mysql_query($sql) ;
  
  while($row = mysql_fetch_array($result))
  {
      $all_opinions[] = $row['name'];
  }
  $all_opinions_implode = implode(",", $all_opinions);
  
  $all_opinions_explode = explode (",", $all_opinions_implode);
  ?&gt;
  &lt;form action="file_upload.php" id="form" method="post" name="form"&gt;
      &lt;?php
  
      for ($i=0; $i&lt;count($all_opinions_explode); $i++) {
          echo    "&lt;input type='checkbox' name='test_link' &gt; $all_opinions_explode[$i]";
          //echo ;
          echo'&lt;/br&gt;';    
      }
      ?&gt;
      &lt;input type="submit" name="submit" id="submit" value="submit"/&gt;
  </code></pre>
  
  <p>Now i want to get Value of Checkbox on <code>file_upload.php</code> but i fail. Can anyone please help me?</p>