Re: Fw: php to poup window
| From: | Afan Pasalic | Date: | Thu, 28 Feb 2002 21:14:28 +0000 |
| Subject: | Re: Fw: php to poup window | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12353@lists.php.net to get a copy of this message | ||
Yup! That could be a good idea! Let me try!
Thanks buddy!
Afan
----- Original Message -----
From: Ryan Marrs
To: 'Afan Pasalic'
Sent: Thursday, February 28, 2002 4:03 PM
Subject: RE: [PHP-WIN] Fw: php to poup window
Perhaps sessions?
Register the variables in a session, then open the session in the popup window to get them.
Ryan
-----Original Message-----
From: Afan Pasalic [mailto:afan@sprout.net]
Sent: Thursday, February 28, 2002 4:11 PM
To: Ryan Marrs; php-windows@lists.php.net
Subject: Re: [PHP-WIN] Fw: php to poup window
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:afan@sprout.net]
Sent: Thursday, February 28, 2002 4:03 PM
To: php-windows@lists.php.net
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