[SOLVED] How submit a form in opener window and run in child window?
Posted 17 September 2006 - 12:22 PM
A.PHP contains a form FORMA with a textarea where the user can enter his data. This form also has a button which tells the user that it, when clicked, enables him to see a pre-formatted display of his entered text in a SEPARATE window.
Actually, when clicked, it opens a child window loading script
B.PHP, which submits the form FORMA from A.PHP (using command opener.window.FORMA.submit(). Form FORMA is submitted using POST to
C.PHP which processes the text and displays the formatted result.
My problem is that the result is not shown in the child window, but in the opener window.
How can I make it so that the C.PHP is run in the child window?
Any help is much appreciated.
Posted 18 September 2006 - 02:26 PM
using command opener.window.FORMA.submit()
you are posting the parent, not the child.
Posted 18 September 2006 - 03:16 PM
But my question was: How can I make it so that the C.PHP is run in the child window?
Posted 18 September 2006 - 04:17 PM
<button onclick="winobj = window.open('test1.html', 'win_name');">Click to open window</button> <form method="get" target="win_name" action="test2.html" onsubmit="winobj.focus();"> <input type="submit" /> </form>
Posted 18 September 2006 - 05:21 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users