Fw: php to poup window

From: Date: Thu, 28 Feb 2002 21:02:45 +0000
Subject: Fw: php to poup window
Groups: php.windows 
Request: Send a blank email to php-windows+get-12351@lists.php.net to get a copy of this message
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

« previous php.windows (#12351) next »