Re: Message box



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 .



Relevant Pages

  • Re: Help trying to login to myspace programatically in vb.net
    ... 'Dim myspacecookies As New Net.CookieContainer ... you should get the login page from a config file. ... Dim response As System.Net.WebResponse = Nothing ... ' You need to capture the cookies at this point and use ...
    (microsoft.public.dotnet.general)
  • AIX password enumeration possible
    ... BPR personnel can neither confirm or deny this behaviour exists in any OS other than AIX of versions mentioned below. ... In the case that the correct password is provided, the response is as follows: ... believed to be in the response from the login program after authentication ... Give accounts that have been restricted from remote logins strong passwords. ...
    (Bugtraq)
  • Re: sendmail with smtp relay authentication
    ... LOGIN PLAIN')dnl ... the mail log and also attached the auto mail response I got. ... m31N0w2T002913: return to sender: User unknown ... 505 5.0.0 Message is sent with SSL but SSL is not allowed ...
    (comp.mail.sendmail)
  • Re: Multiple logins on same ID
    ... The usage model is that kids don't regularly use the computers. ... Hence I can't manage one login per student. ... terminals, other than dynamically generating gdm.conf on system ... And, before I forget, thanks a ton for the response. ...
    (Fedora)
  • Re: WE/IE FTP
    ... I like using WE for ftp because it's a common Windows 'native' interface ... twice with blank password then with correct password the third attempt. ... Also there are no attempts to login as 'anonymous'. ... Response: 331 Password required for. ...
    (microsoft.public.inetserver.iis.ftp)