itmagician Posted September 14, 2020 Share Posted September 14, 2020 Hi - I want to add to a php form a button which will open a pop-up window with records (names of people) and associated radio buttons. On click on respective name's radio button and SUBMIT, parent form textbox is populated. (list of names will be dynamically be selected fro MySQL table). Any suggestions? Many thanks! IB. Quote Link to comment https://forums.phpfreaks.com/topic/311483-looking-to-add-popup-form-to-parent-form/ Share on other sites More sharing options...
requinix Posted September 14, 2020 Share Posted September 14, 2020 Javascript to open the window, Javascript to handle the radio button selection event, then window.parent will give the popup's code a way to reach the parent window's form and textbox. Quote Link to comment https://forums.phpfreaks.com/topic/311483-looking-to-add-popup-form-to-parent-form/#findComment-1581387 Share on other sites More sharing options...
Strider64 Posted September 15, 2020 Share Posted September 15, 2020 This can also be achieved by simply using HTML and CSS. I have done it plenty of times and you don't even need javascript though using javascript you could give some flare to it. Quote Link to comment https://forums.phpfreaks.com/topic/311483-looking-to-add-popup-form-to-parent-form/#findComment-1581422 Share on other sites More sharing options...
requinix Posted September 15, 2020 Share Posted September 15, 2020 20 minutes ago, Strider64 said: This can also be achieved by simply using HTML and CSS. I have done it plenty of times and you don't even need javascript though using javascript you could give some flare to it. You're saying you can open a popup window, handle clicking on a radio button, and update the parent window's form data, using only HTML and CSS? I'd love to see that. Quote Link to comment https://forums.phpfreaks.com/topic/311483-looking-to-add-popup-form-to-parent-form/#findComment-1581423 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.