The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

How can I pass variable from called window to caller window?

Hello,
First I apologize that I posted this thread in the Javascript forum as well,
but please forgive me because I am urgent.

Here is a situation.
In page1.php there are 3 text boxes and if one of them is entered and ok button is pressed, it should bring another window(managerPassword.php) and ask a manager password.
If right manager password is entered in the window(managerPassword.php), it will close and the page1.php should proceed the next steps.

I managed to succeed to open another window(managerPassword.php) from the first page(page1.php) and check the right manager password and close the window, but even this window is closed, the calling page(page1.php) doesn't know about anything happened in the managerPassword.php

So how can I make that happen so if the right manager password is entered at the managerPassword.php then it will close and page1.php knows that the right password is entered somehow and proceeds the next steps?