Hey Jeff,
You're actually going to need to do this with
sessions as that would be the easiest way to go.
What I'd do is look at the session functions in the DOCS section here: http://www.phpbuilder.com/manual/ref.session.php
For the control window I'm assuming you are using a sort of pop-up remote, so you'd build your link to control a hidden form
in the parent window like this:
function postJSForm(var1,var2) {
parent.document.formName.var1 = var1;
parent.document.formName.var2 = var2;
parent.document.formName.submit();
}
And build your form:
<form name="formName" action="/pageName.php" method="POST">
<input type="hidden" name="var1" value="">
<input type="hidden" name="var2" value="">
</form>
and your link as so:
<a href="#" onClick="javascript:postJSForm('this value', 'that value'); return false;">click here</a>
This will cause the values set in the onClick Parameter to be set into their slots in the form you have set up and then post to the parent window. Using the href="#" and return false in the javascript will keep the pop-up window from twitching around or reloading.
Now...
In the parent window, just do this on the recieving side:
$GLOBALS['var1'] = $var1;
$GLOBALS['var2'] = $var2;
session_register('var1');
session_register('var2');
And viola, you may now call these variables from all subsequent page requests as
$GLOBALS['var1'];
$GLOBALS['var2'];
or for php4.0 - php4.0.6
$GLOBALS['HTTP_SESSION_VARS']['var1'];
$GLOBALS['HTTP_SESSION_VARS']['var2'];
and for php4.1.2 <
$SESSION['var1'];
$SESSION['var2'];
...but I use the first example since that will work for all session enabled php versions...
So there you have it.
Good luck.