/    Sign up×
Community /Pin to ProfileBookmark

close window before php code has finisihed running

I’m working on web application using PHP
what I need is after the user fulls in a form and submits it, the receiving PHP page closes the window before continuing with its processing on the server. its a bulk mailing system and sending 10 emails takes some time as my development area has email scanning, as you can guess I’m presented with a blank page until the email is processed and sent
as this would look like theres nothing happening to the average user and they are able to close the window with no ill efect on the code, I’d like the window to close itself as after the mail’s been sent its no longer needed

can anyone help?

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@SamFeb 09.2004 — I don't think this can be done, php stands for pre hypertext processor, so it has to do all the processing before it can do anything on the enduser side. Correct me if I'm wrong
Copy linkTweet thisAlerts:
@simpson97Feb 10.2004 — Check out this url:

http://www.webxpertz.net/faqs/jsfaq/jsserver.php

It may give you some ideas.

Bob
Copy linkTweet thisAlerts:
@anarchistauthorFeb 10.2004 — cheers for the tips, think I'll just change where I submit the form to then close the window with javascript, I think that should work
Copy linkTweet thisAlerts:
@Paul_JrFeb 10.2004 — [i]Originally posted by samij586 [/i]

[B]I don't think this can be done, php stands for pre hypertext processor, so it has to do all the processing before it can do anything on the enduser side. Correct me if I'm wrong [/B][/QUOTE]

[i]HyperText Preprocessor.[/i]
Copy linkTweet thisAlerts:
@SamFeb 10.2004 — thanks paul, i'm lysdexic sometimes
Copy linkTweet thisAlerts:
@Paul_JrFeb 11.2004 — [i]Originally posted by samij586 [/i]

[B]thanks paul, i'm lysdexic sometimes [/B][/QUOTE]

Ooo, many pardons, I wasn't aware of that. :o
×

Success!

Help @anarchist spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...