Jump to content

popup window List of Values to select


flipmode

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.