PHP Submit to modal

Hey all.
This may be an easy question to answer but i for the life of me cannot get this to work

I have a simple page that displays a html form with a single field (member_id) and a submit button, i need to take that member_id and pass it to a form processor that will pull data from mysql and then display the result in the modal what would the best approach be for this? I already have the sql build just need to know how to submit to a modal and display info within that modal.

my current page.
[php]

Test

Logo

Header1

Header2


Member ID:
Submit
[/php]

You don’t submit to a modal. You have a form in a modal. It submits them form the same way you would in the DOM, because it is still in the DOM.

If I understand correctly you make 1 generic modal for a member. You then add a click handler in javascript for clicking those buttons, use the member id (ie data-member-id="{{ member.id }}" on the button) to fetch the member data from the server side, and populate the modal with the data you receive. You are free to choose if you want to show an empty modal (preferably with placeholders/loader, or wait to show the modal until after receiving the data.

Sponsor our Newsletter | Privacy Policy | Terms of Service