Let me start by saying I'm not sure if this is a PHP or Javascript problem. Here's the situation:
I have an HTML page that displays a Modal Window when it loads. The window is a small form, which is optional. If the viewer decides to fill it out, when they click the Submit button the form is validated and, if all is okay, the window is removed and the form data sent (via action=) to a PHP routine for further processing.
I would like the viewer not to be aware of the PHP routine running (there are no messages sent to the viewer from this routine).
I have tried ending the routine with
echo "<script>history.back();</script>";
and that returns the viewer to the HTML page without the Modal window being redisplayed in every browser that I've tried, except for IE, which redisplays the HTML page (with the Modal Window active). So, I have 2 questions:
1) Is it possible to have the PHP routine run in the background (so the viewer never leaves the HTML page?
2) If not, is there a way to have IE just return to the HTML page without reloading it?
Thanks in advance for your help.