Web Analytics Made Easy -
StatCounter Submit a form in popup window to opener window - CodingForum

Announcement

Collapse
No announcement yet.

Submit a form in popup window to opener window

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Maybe I should have posted this in the JavaScript forum. Can a moderator please move it. Thanks.
    Colin Puttick

    Comment


    • #3
      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!
      Everyone hears what you say, friends listen to what you say, best friends listen to what you don't say.
      Radio DJ Panel v3 - It's Here!

      Comment

      Working...
      X