title: Run PHP code when user clicks link and pass variables
body: <p>I need to run a PHP code from external server when user clicks a link. Link can't lead directly to PHP file so I guess I need to use AJAX/jQuery to run the PHP? But how can I do it and how can I pass a variable to the link?</p>
  
  <p>Something like this?</p>
  
  <p><code>&lt;a href="runcode.html?id=' + ID + '"&gt;</code> and then runcode.html will have an AJAX/jQuery code that will send that variable to PHP? </p>