title: How to create popup using only PHP?
body: <p>Actually I figured out a way to do this:
  What follows isn't exactly working code, but it does convey my idea. I've implemented this idea and it does work. I think the drawback is for complex pages, because the entire page has to be reloaded every time a popup goes up or down. But, on the good side, NO MORE JAVA SCRIPTS!!! YAY!!! :)</p>
  
  <pre><code>&lt;html&gt;
  &lt;body class="classfile.css"&gt;
  &lt;div                                 &lt;?//add background stuff here?&gt;
  &lt;?php
  if(isset($_POST["popupmode"]))
     echo ' style="opacity:0.15" '; //this will fade out any background stuff
   ?&gt;
  style="height:1000px;with:600"px&gt;
  &lt;form method="post" action="thispage.php"&gt;
  &lt;input type="hidden" name="popupmode"&gt;
  &lt;input type="submit" value="bring up popup"&gt;
  &lt;/form&gt;
  &lt;/div&gt;
  
   &lt;?php
   if(isset($_POST["popupmode"]))
    {
     echo '&lt;div style="with:200px;height:200px;top:-800px;left:200px;border-style:raised"&gt;';
    echo '&lt;form method="post" action="thispage.php"&gt;';
    echo '&lt;input type="submit" value="bring down popup"&gt;';
    echo '&lt;/form&gt;&lt;/div&gt;';
    }    
    ?&gt;
    &lt;/body&gt;
    &lt;/html&gt;
  </code></pre>