Posted by d on 10/23/85 11:40
"Sheldon Glickler" <sheldonlg@bellsouth.net> wrote in message
news:6XHKf.18061$UD1.9984@bignews2.bellsouth.net...
> Here is a problem I encounter often but haven't solved.
>
> In a form I have a submit button. When clicked, I want to do some
> processing so I check with the isset($_POST['the_button_name']). (I keep
> all my code above the html code). Now, once I have done that processing,
> I want the window to disappear. Is it as simple as adding an on_click
> event to close the window? Will the processing then still take place?
If the window was not opened with javascript, you might get a warning if you
try to close it.
The best (only?) way to close it in this situation is to spit out some
javascript after you process the $_POST:
<script type="text/javascript">
window.close();
</script>
and then exit your script. Your window will then close after the processing
has been done.
> Shelly
dave
>
[Back to original message]
|