title: Set PHP varibles on button press without using POST or GET
body: <p>I need to set 3 PHP variables on a button press, but the problem is <strong>I can't</strong> use POST or GET to do it due to it refreshing the page which breaks my JavaScript code as it includes an onClick event listener.</p>
  <p>What I want my code to do exactly is, on a button press set 3 variables, <code>$title</code>, <code>$description</code> and <code>$button_value</code>. When the button is pressed it also sets off the JavaScript code to display a box with some information that is the 3 PHP variables.</p>
  <p>Is there anyway to get around this issue or would I just have to rewrite my JavaScript code to work with POST/GET? I'm new to PHP and JavaScript so apologies for my incompetence.</p>