The problem:
I have a series of 'accept' buttons, on click it opens a lightbox (a modal- using bootstrap), of course this is done without refreshing the page.
On the lightbox I need to show information regarding what is being accepted (therefore I need to pass a PHP variable to the lightbox). So the problem is how can I pass on a variable on click without refreshing the page? I tried using javascript, but the thing is once I set up a variable in JS I can't get that variable to PHP without refreshing the page.
The button has this code.
<a href="#modal-accept" data-toggle="modal"><button class="btn btn-acceptColor m-t-lg">Accept</button></a>
The other code isn't relevant for the purpose of this question. I just need the concept of how to actually do it.
Any help!?