flipmode Posted June 11, 2007 Share Posted June 11, 2007 Hi, I am a newbie with PHP and was wondering if you could please help me. What i need to do is bring up a popup window with a list of values(values looked up from the database). The user should be able to select one of the values from the list and the value then populate a text box on the calling form. Any Ideas? Thank you Eb Link to comment https://forums.phpfreaks.com/topic/55093-popup-window-list-of-values-to-select/ Share on other sites More sharing options...
Psycho Posted June 11, 2007 Share Posted June 11, 2007 That would be a mixture of PHP and Javascript. Here is a break down of the primary sections: 1. Parent page will have a link for the popup which will be a PHP page 2. The popup PHP page will do a query to get the list items and display some sort of method to make a selection 3. Javascript on the popup page will populate a field in the parent document when a selection is made and close the popup. If you are wanting instructions on how to do the query and create a control to select the value, then post back. But, I am assuming you are wanting to know how to populate one page from another. That is entirely javascript and this page should help explain how to do it: http://www.webreference.com/js/tutorial1/opener.html Link to comment https://forums.phpfreaks.com/topic/55093-popup-window-list-of-values-to-select/#findComment-272341 Share on other sites More sharing options...
flipmode Posted June 12, 2007 Author Share Posted June 12, 2007 Thanks, That link really helped. Link to comment https://forums.phpfreaks.com/topic/55093-popup-window-list-of-values-to-select/#findComment-273107 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.