title: how to close current window in PHP
body: <p>I want to take a value in session then close the current window.</p>
  
  <pre><code>if(isset($_POST['ok']))
  {
  echo  "&lt;script type='text/javascript'&gt;";
  echo "closeCurrentWindow()";
  echo "&lt;/script&gt;";;
  }
  </code></pre>
  
  <p>Why isn't this working?</p>