Fwd: Popup window from form on php page
| From: | David Bourne | Date: | Sat, 25 May 2002 04:33:50 +0000 |
| Subject: | Fwd: Popup window from form on php page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-99203@lists.php.net to get a copy of this message | ||
Sorry, asked and answered:
The code (in Page1.php):
<form action="javascript: OpenWindow('Page2.php?a1=<? echo $a1; ?>&a2=<? echo $a2; ?>&a3=<? echo $a3; ?>&a4=<? echo $a4; ?>', 'Answers','toolbar=no,resizable=yes,scrollbars=yes,dependent=yes,status=0,
alwaysRaised=yes,width=600,height=600');" method="post">
<input type="submit" value="Look at the Answers?">
</form>
seems to work with the OpenWindow function in a JS header.
Any obvious problems with this?
David
Begin forwarded message:
From: David Bourne <david@boomer.org> Date: Fri May 24, 2002 11:07:08 PM US/Central To: php-general@lists.php.net Subject: Popup window from form on php page Hello I noticed a recent thread regarding popup windows from a php page. The solution appears to work using JavaScript for client side action. This worked OK, except I want to open a new window and display data from the previous page. I'm using php 4.1.2. What I want is Page1.php containing the JavaScript and a form with hidden fields containing data to open Page2.php to display the data from Page1.php. Any ideas? Thanks, David Bourne