Communicate between pop up window and the parent window


I’m working on a PHP/MySQL project using Codeigniter framework.

The user fill a form with many data, and give me also FTP access to his web hosting, I want to POST FTP details to a popup after clicking Browse button, user will select a path (I’m using Codeigniter FTP Class), then I’ll grab the path after the user click Save, or Close button.

Is there anyway to open a popup and post data to it, then the user will select something and I’ll get what the user selected from the popup after closing it?


This looks like it will do what you want:

The gist is to set your action of the form to the page you want opened up in the popup, then return the popup function as the onSubmit handler of the form.

Answered By – swatkins

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published