Insert into a textbox a query result from another window

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lloydie-t
Forum Commoner
Posts: 88
Joined: Thu Jun 27, 2002 3:41 am
Location: UK

Insert into a textbox a query result from another window

Post 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.
Tubbietoeter
Forum Contributor
Posts: 149
Joined: Fri Mar 14, 2003 2:41 am
Location: Germany

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

the opener-object gives you access to the window/frame-object that opened this window.
Post Reply