View Full Version : Problem with HOW-TO structure/code

11-10-2008, 06:17 PM
I am creating an application form in PHP. The customer would like a click 3/4 down the page to open a new browser window with programs and descriptions. When the user selects a program it populates the PHP form with the user's selection. I suspect cookies might be the way to go here, but I can't quite get my mind around it. I also suspect the solution will require some javascript, which I know a little about. The list of programs and their descriptions will be dynamically displayed from a MySQL DB.

(The old html form simply had a dropdown list)

Any direction/advice much appreciated.


11-10-2008, 06:22 PM
This is really a javascript issue. You should ask a mod to move your thread there.

The basics you need are :
clicking a link to open a popup window
clicking another link to populate the parent window's form and then close the window.

11-10-2008, 07:24 PM
Sounds like ajax is the way you'd like to go.
From the PHP side, you want to ensure that you can correctly populate a form given a record id. Once you can do that, ajax would be a piece of cake to integrate.