Re: Message box
- From: Lüpher Cypher <lupher.cypher@xxxxxxxxxxx>
- Date: Sat, 31 Dec 2005 13:11:01 GMT
Shelly wrote:
I want to do something like bringing up a message box in Java where after 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 page.)
Shelly
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 a script:
1. do something
2. check if response ready
2.1 if ready, goto wherever based on response
2.2 if not, proceed
3. send a page back that contains a form and a javascript that pops up a message box
4. when the user answers, javascript populates the form with the 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
luph .
- References:
- Message box
- From: Shelly
- Message box
- Prev by Date: Re: NNTP store newsgroup posts
- Next by Date: Newbie - Redirect to do processing
- Previous by thread: Re: Message box
- Next by thread: Re: Message box
- Index(es):
Relevant Pages
|