The ideal method would be to pass it with an AJAX call, but for a quick and dirty method, all you'd have to do is reload the page with this variable in a $_GET
parameter -
Your page will reload and now in your PHP, you'll have access to the $_GET['a']
variable.