The window is invoked in the parent by:
Code: Select all
<a href=javascript:firstWindow('reviser.php?Doit=1',130,700)>Preparer:</a>");Code: Select all
<?php
if (isset($_POST['Cash']))
{
// misc code here processes $_POST var
mysql_query($Query, $Link);
// what can I put here to eliminate the "Close Window" href below ????
// exit; along with the above line
}
if ($Doit == 1) print("<TITLE>Preparer Text</TITLE>\n");
// misc code here opens database
if ($Doit == 1 || isset($_POST['Prep']))
{
print("<form method='post' action='reviser.php'>");
// misc code here displays form
print("<a href='' target='_parent' onClick='top.close()'>Close Window</a>");
print("<input type=image src='images/ag_okay.gif'>");
}
?>