I want a pop up box with passing variables :D

Discussion in 'PHP' started by Glocked, Jul 3, 2007.

  1. #1
    Hello, I have created custom-built private messaging system for a site and need a bit of help. For the user name select button I need either

    1. Preferably a popup box with a list of names, where when you click Select, it closes and passes a var to the main screen, which puts the appropriate information in the text box. (I know how to do all of it except making the popup and having it pass a var to the main page and into the box. I would hope to refrain from refreshing (that would kill all the stuff they had put in the other boxes) but I guess it may be required if I want to keep it simple.

    2. .. never mind.

    Thanks

    Edit: by the way I was also wondering what the best approach is to a "x amount of users online" would be. It seems fairly easy but the only obstacle would be taking them offline if they close their browser instead of logging out.
     
    Glocked, Jul 3, 2007 IP