View Full Version : Passing data from one page to another

12-09-2005, 06:02 AM
Hello all,

I need to find a way to pass information from one page to another:

1) The user is logged into a session, but I can not pass the data to the session.

2) The information is derived from a MySQL query and not related to my session info (info = one item)

3) I would like to relate the information to a variable so I can run another query

4) The second page is a popup, so I'm using javascript to initialise the new page.

Any suggestions?

SysX :confused:

12-13-2005, 12:43 AM
you do the following:

in your javascript Popup-er:

function OpenPopup()

open( "whatever.php?var_name=value_you_want_to_pass" );

in your popup page(in this case it's whatever.php):


$passed_value = $_GET['var_name'];

echo "received value: ".$passed_value;

hope it works for you :)