Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Message box
December 31, 2005, 11:50 am
rate this thread
clicking OK the box disappears and processing continues.
How do I do this in PHP?
I want the processing after the message box to be conditional upon what was
used to bring up the particular message box. (I have been handling
something like this so far by having inline messages and reposting the
Re: Message box
A thought occurred to me on how to solve this right after I posted.
I will have a header to a page which is the message box with a target of
"_blank". In the original page it will not be followed by exit() but will
have another header to either repost or go somewhere else. That one will
have an exit() after it. This might work, but how can I then lock the
original page until the message one disappears?
I will try this.
Re: Message box
Hmm.. What do you mean by bringing up a message box? If I understand
correctly, you are talking about Java applets, but those run on the
client side so, the system takes care of message processing. PHP script
runs on the server side, there is no way to bring up a message box on
the client machine from within PHP script.
If you want to do something, then ask something of user, and proceed
depending on what the response was, one way to do that would be to have
1. do something
2. check if response ready
2.1 if ready, goto wherever based on response
2.2 if not, proceed
response and submits form
5. back to 1.
It's like a login page :)
2. check if login submitted
2.1 if login ok, redirect somewhere
2.2 otherwise, proceed
3. output login form