title: Open modal web page from another web page
body: <p>I am creating a form in a PHP file. In the form I have a link. On clicking the link I want to open a web page or PHP page as a modal window.</p>
  
  <p>Below is the form in test1.php which I want to create.</p>
  
  <pre><code>&lt;form action="test.php" name="form" METHOD="POST"&gt;
      &lt;a href="#"  onclick="window.open('test.php','popup','scrollbars=1,width=620,height=620,top=50,left=200')" title="Listbox" class="toplinks1"&gt;Open Link&lt;/a&gt;
      &lt;INPUT TYPE=SUBMIT NAME="SUBMIT" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The above form has a link, "Open Link", which does open test.php in another window. But I can access the test1.php while the test.php is open.</p>
  
  <p>I need to open test.php as a modal window.</p>