I am trying to work on a PHP project that connects to a sql database.
I am creating a lists of divs that has an edit and delete button. When I select the edit button I would like the have a form pop up in a Modal window in order to perform the edits.
On my page, when I select one of my edit buttons I use PHP ISSET($_GET[’?’]) and create a new variable and assign data from my database. In my MODAL I try and access the variable but get error that the variable is undefined.
I feel that the issue is that when the MODAL is added to DOM when the page loads initially the variable never gets set because ISSET($_GET[’?’]) has not been called yet by the edit button. Some sort of asynchronous issue.
Hope my question makes sense. Wondering if it is possible to get that to work?