Running PHP as a Background Task
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
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.
Sounds like what you're wanting is client-side behavior - moving to ClientSide Technologies forum.
Again, thanks in advance for your help.
Well, it's not a totally new language, just using an object available in an existing language (unless you're talking about jQuery, which in this instance is again not so much a new language as cross-platform wrappers to simplify common uses of the Ajax idiom).
I appreciate your reply, although I'm not sure I understand what you said. Is there a forum where someone could assist me in setting up the AJAX code?
Lynda is a pretty good tutor..
Otherwise, google has a lot of examples to select from and this place here is good if you get stuck along the way. Happy Learning!
Download phpAdsNew and look at the fakecron.php file. It "fakes" cron by running a background process triggered by a 1x1 pixel image placed on the page you want to trigger the background operation.
Settled 4 red convertible
He said something like
Originally Posted by jimweinberg
Originally Posted by The Weedpacket Translator
Granted, not everyone is a "web programmer" ...
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)