test.php
<html>
<body>
<script language="javascript">
function newWindow(){
window.open("window2.php","wind","width=500,height=200,menubar=0");
}
</script>
<form method="POST" action="test.php">
<input type="submit" value="Submit" onClick="newWindow()">
</form>
</body>
</html>
window2.php
при открытии окна WINDOW2.PHP нужно сделать REFRESH TEST.PHP
<html>
<body>
Спасибо!
<a href="javascript:window.close();">Close</a>
</body>
</html>