|
Posted by Lόpher Cypher on 12/31/05 15:11
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
[Back to original message]
|