I'm making a php application where details on some data can being "choosed" from a popup window.On clicking a link, the popup opens with a result set. The user can click on the needed row and a variable is being passed on to the main window. The form in the main window is being submitted so details are being filled in with help of the passed variable.

It works perfect without the "i"s in the last function (as with just one row in the result set on the popup window).I added the "i" because a result list has more rows than one. So every row has its own mini-form with a button, a hidden notid-value and name "i"...

On clicking a button in the result list, the value is being transfered correctly to the main window, it is being refreshed with the submit and the popup is being closed.

But when I click on any link or button in the main window, nothing happens anymore.I've deleted the window.close-line of the function, but still no links/buttons are working after submitting the main form by the function...

Can anyone helps me with what's happening here?Is there a better way in doing these things?

I'm sorry but it is all happening on intranet. I'm more than happy to elaborate on things that aren't clear.Maybe I can summarize in a whole again without the code:

1/ in the main window one has to fill out the data.2/ because some data is already stored in the database (eg. details of a mail address (name contact, address, zip, city)) I came up with the idea to place a button on the main form for entering those details quickly.3/ clicking upon it pops up a small window where one can enter a zip code - after leaving the field, the popup refreshes with a result list of details of all known mail addresses, based on the given zip. In this result set every row starts with a button -> when clicking on this button, the variable notid of that row (hidden) is being transfered back to the main form4/ the code from the popup finaly refreshes the main form so the details of the mailaddress are being filled out (thanks to the passed variable notid)

If you need more information about something else, please post back...

I tried your code and indeed, it works perfectly (PHP).Since somewhat the same mechanism was used, I focused on it in my scripts by making the form in the main window a GET form so I could see what was happing on transfering the var with javascript and ... :o ... I made a mistake in formatting the code; I wrote

I do not normally write code "on demand". Besides, changing the script to make it work with radio fields is not that hard, requiring little knowledge of JavaScript and HTML. Nevertheless, I guess I get "soft" on Sunday morning so here you have:

I tried your radio button example above and I will confess to being less than proficient in javascript. Can you tell me - does the parent window pass a value to the popup window (that is the value of the selected button) and if it does how do you get at it in php.

I realize this is an old thread (38 months) but it was EXACTLY what I needed. I made one modification to the submit button though:<input type="submit" value="Save Selections" onMouseUp="window.close()"> which closes the pop up window. Otherwise, I only changed the forms fields. Thank you!