Page 1 of 1

Insert into a textbox a query result from another window

Posted: Sun Apr 13, 2003 6:17 pm
by lloydie-t
Not sure where to go with this one. I need to insert a ID number into a textbox, but to do that I need to search for an ID number held in a MySQL table. My plan was to open a popup window where the query is executed and then use the result of that query to populate the textbox in the main window. My problem is that it is still a plan. I am fine with PHP which is why I posted here, but I suspect that I will need JS (which I dont know) as well to achieve this. Any Ideas? or can someone point me to a thread where it has already been done.
I have already seached the forum and found nothing similiar.

Posted: Mon Apr 14, 2003 4:48 am
by Tubbietoeter
I dont quite get what you need the popup for ... to open a popup window you will need to use javascript but I'm not quite sure what you need the second window for and what your problem is.

Posted: Mon Apr 14, 2003 5:26 am
by volka
the opener-object gives you access to the window/frame-object that opened this window.