Doug Calli
08-07-2003, 12:53 PM
I need to pass a vaiable from one script to another, ideally
through a pop-up window, as I am trying (unsuccesfully) to do here.
2 Q's:
Is this possible using a java pop-up window?
If so, how do I retrieve the variable in script2? Do I query for the results?
What I'm trying now,.....
<?php
$footer ="
<a href=\"javascript:void(0)\"
onclick=\"window.open('../../SomePathTo/script2.php?VariableName=+$variable+,
'WinName','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,c opyhistory=no,width=350,height=400')\">
<font size='-1' face='Arial,Helvetica,Univers,Zurich BT,sans-serif'>Readable Link Text</font></a>
";
echo "$footer";
?>
Thanks, DC
Edit:
how do I retrieve the variable in script2
Since we didn't address this and others may want to know!;)
The form action was set to - action=""
This causes the form to post to the current window/script, so the variables are available to that script.
At least that's my understanding, someone else may have a better explanation of what is going on.
through a pop-up window, as I am trying (unsuccesfully) to do here.
2 Q's:
Is this possible using a java pop-up window?
If so, how do I retrieve the variable in script2? Do I query for the results?
What I'm trying now,.....
<?php
$footer ="
<a href=\"javascript:void(0)\"
onclick=\"window.open('../../SomePathTo/script2.php?VariableName=+$variable+,
'WinName','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,c opyhistory=no,width=350,height=400')\">
<font size='-1' face='Arial,Helvetica,Univers,Zurich BT,sans-serif'>Readable Link Text</font></a>
";
echo "$footer";
?>
Thanks, DC
Edit:
how do I retrieve the variable in script2
Since we didn't address this and others may want to know!;)
The form action was set to - action=""
This causes the form to post to the current window/script, so the variables are available to that script.
At least that's my understanding, someone else may have a better explanation of what is going on.