View Full Version : Submit a form in popup window to opener window

10-11-2006, 07:58 PM
I have a form that is in a popup window. I need the form to submit to the opener window. Is is possible to do that? The opener window is the main window so it is does not have a name and there are no framesets.

<form action="something.php" method="post" target="????">
I'd like to use window.opener in the target but that's JavaScript...

I know somebody has done this before and has the code.


10-13-2006, 08:46 PM
Maybe I should have posted this in the JavaScript forum. Can a moderator please move it. Thanks.:thumbsup:

10-13-2006, 11:02 PM
well you could just use this...

<form action="openerwindow.php" method="post">

that will just send the form data to the opener window - because if I am correct then your popup is likely another html file? right?

So just change "openerwindow.php" to the filename for your file that opens the popup and your good to go!