Re: [PHP] Fwd: Popup window from form on php page

2002-05-25 Thread Miguel Cruz

On Fri, 24 May 2002, David Bourne wrote:
 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?

Seems pretty sensible.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Fwd: Popup window from form on php page

2002-05-24 Thread David Bourne

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 [EMAIL PROTECTED]
 Date: Fri May 24, 2002  11:07:08  PM US/Central
 To: [EMAIL PROTECTED]
 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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php