Hello,
you can't do it directly in PHP, becouse PHP is a server-side language. For full interactivity with page users you need to use some client-side language, eg. JScript or VBscript. If open new window (popup) by javascript method window.open, you will be able to call some functions on opener window, e.g.:
PARENT WINDOW
<input type="text" name="testField">
<br>
<A HREF="javascript:window.open('new_window.html','nameOfNewWindow',width=300,height=300)">open window</A>
NEW_WINDOW.HTML
<SELECT ONCHANGE="top.opener.window.document.testField.value = this.options[this.selectedIndex].value; window.close()">
<OPTION>
<OPTION VALUE="ABC">ABC
<OPTION VALUE="DEF">DEF
</SELECT>
It's only an example. For more info I suggest you to read this: http://www.webreference.com/js/tutorial1/opener.html