Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    Saskatoon SK Canada
    Posts
    174
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Lightbulb Submit a form in popup window to opener window

    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.

    Thanks!
    CP
    Colin Puttick

  • #2
    Regular Coder
    Join Date
    Sep 2002
    Location
    Saskatoon SK Canada
    Posts
    174
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Maybe I should have posted this in the JavaScript forum. Can a moderator please move it. Thanks.
    Colin Puttick

  • #3
    Regular Coder Troy297's Avatar
    Join Date
    Oct 2006
    Location
    Earth
    Posts
    314
    Thanks
    10
    Thanked 0 Times in 0 Posts
    well you could just use this...

    Code:
    <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!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •