dcsimg
How to view form data in a new window
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   G_K
Posted On:   Wednesday, September 3, 2003 09:15 AM


I have a form c1.php
On submitting, I want to view the entered values
on a page c1.php which opens in a new window.



How do I do this?
I am using php to read form data, but it doesn't appear in the new window.Only text shows up.




Thanks,



Guri

Re: How to view form data in a new window

Posted By:   Nitesh_Naveen  
Posted On:   Thursday, September 4, 2003 01:30 AM

you have to basically open a blank window and submit to the resultant php with that window as the target of the form. In the new php you will have to read the data from the request and populate them as required. Here is an eg.to submiting to new window...

var myWin = window.open("about:blank","myWin","width=300,height=500");
document.formName.target="myWin";
document.formName.action="c2.php";
document.formName.submit();
About | Sitemap | Contact