how to close current window in php
<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 thish is not working?</p>
