title: How to use lightbox to display PHP query results from an SQL server after submitting form criteria
body: <p>So I'm redesigning the intranet for the library of a county-based historical society, and they have ridiculous amounts of data.  Since the tables returning the data are so huge, every method I've tried to use so far breaks the layout and looks ugly.  I'm hoping that some kind of lightbox feature could help display tabular data results.</p>
  
  <p>Basically I want this form:</p>
  
  <pre><code>&lt;form action="proc_church.php" method=post name=query&gt;
      &lt;br&gt;
      &lt;span style="color: #fff;"&gt;Input a &lt;b&gt;surname &lt;/b&gt;&amp;nbsp;&lt;/span&gt;
      &lt;select name="sname"&gt;
        &lt;option selected value="Last_Name"&gt;Last Name&lt;/option&gt;
        &lt;option value="Maiden_Name"&gt;Maiden Name&lt;/option&gt;
      &lt;/select&gt;
      &amp;nbsp;
      &lt;input type=text name=surname size=30&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;span style="color: #fff;"&gt;Input a first name&amp;nbsp;&lt;/span&gt;
      &lt;input type=text name=firstname size=30&gt;
      &lt;br&gt;
      &lt;br&gt;
      &lt;span style="color: #fff;"&gt;Sort By&amp;nbsp;&lt;/span&gt;
      &lt;select name=pick&gt;
        &lt;option value="First_Name"&gt;First Name&lt;/option&gt;
        &lt;option value="Last_Name, First_Name"&gt;Last Name, then first name&lt;/option&gt;
        &lt;option value="[Church References].Church_Reference"&gt;Church&lt;/option&gt;
        &lt;option value="Page"&gt;Page&lt;/option&gt;
        &lt;option value="Exact_or_Range_Start_Date"&gt;Start Date&lt;/option&gt;
        &lt;option value="Range_End_Date"&gt;End Date&lt;/option&gt;
      &lt;/select&gt;
      &lt;input type=hidden name=orders&gt;
      &lt;input type=button value="Submit Query" onClick="process()" id=sub&gt;
    &lt;/form&gt;
  </code></pre>
  
  <p>to splash to a lightbox pop-up of the <code>proc_church.php</code> page seen in the code.</p>
  
  <p>If anyone could tell me which lightbox plugin would do this easiest (and how to execute it) or if it's even possible I'd really appreciate it.  If it's not possible I'd love a few suggestions on how to accomplish it, like maybe a js pop-up window. Thanks.</p>