That's correct, but I would rather not to use URL to transfer info (names, passwords...). It must be hidden. Any other idea?
afan ----- Original Message ----- From: Ryan Marrs To: 'Afan Pasalic' Sent: Thursday, February 28, 2002 3:56 PM Subject: RE: [PHP-WIN] Fw: php to poup window You need to pass the variables to the popup page. So in the page url, you may want to do something like: Popup.php?thisvariable=thisvalue&thatvariable=thatvalue&etc=etc&etc=etc That will pass the variables to that page. Then in the popup page do a: print $_GET["thisvariable"]; to get your value (or if you have register_globals turned on, feel free to use $thisvariable Ryan -----Original Message----- From: Afan Pasalic [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 4:03 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Fw: php to poup window Hi, I'm trying to, after submitting a form, open a popup window and print all info in the popup window. I use the following code - which of course doesn't work: <html> <head> <title>Untitled</title> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function popupPage(l, t, w, h) { var windowprops = "location=no,scrollbars=yes,menubars=yes,toolbars=yes,resizable=yes,left=" + l + ",top=" + t + ",width=" + w + ",height=" + h; var URL = "popup2.php"; popup = window.open(URL,"MenuPopup",windowprops); } // End --> </script> </HEAD> <body> <center> <table> <tr> <td> <br><br> <form method=post action=/ onSubmit="popupPage(20, 20, 450, 350)"> <center> <input type="text" name="varname1"><br> <input type="text" name="varname2"><br> <input type=submit value="Submit"> </center> </form> </td> </tr> </table> </center> </body> </html> I'm getting a new popup window but nothing's there. Thanks for any help Afan