how to get value from POPUP to Parent Window

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
eshban
Forum Contributor
Posts: 184
Joined: Mon Sep 05, 2005 1:38 am

how to get value from POPUP to Parent Window

Post by eshban »

Hello,

I need some help

I have a form in child window(popup window). And i want to send /post data to the parent window with javascript.

Here is my code

Code: Select all

 
 
 
<form name='form3' method='post' action='../ubr_file_upload1.php'>    <table width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td style="text-decoration:underline; cursor:hand" onclick="javascript&#058;document.form3.submit();window.location='addressbook12332.php';window.opener.location.reload();">kkk2</td>
      </tr>
 
    </table>
    <input name='EmailValueHidden' type='hidden' value='kkk2'/>    </form>
 
 



Both windows are refreshed when i submit the form in popup, but i cannot get the POST data in a parent window.

Any solution ????
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: how to get value from POPUP to Parent Window

Post by Christopher »

You can't do it that way. Perhaps you could set the values in the opener form and then submit it.
(#10850)
Post Reply