Skip to content Skip to sidebar Skip to footer

Returning A Value From Popup Window Using Php And Javascript

I am trying to create a popup page from a parent page, which will return a value to the parent page and will close eventually. What I have done so far: main.php:

Solution 1:

Do you really want encodeURIComponent(pid) here?

Try without encodeURIComponent:

window.open('search_project.php?id=pid','popuppage',
       'width=400,toolbar=1,resizable=1,scrollbars=yes,height=400,top=100,left=100');

Post a Comment for "Returning A Value From Popup Window Using Php And Javascript"