title: Detecting if href link is clicked using PHP
body: <p>I would like to know if its possible to check if a link is clicked in PHP. </p>
  
  <p>I created a page for downloading games and I want users to be able to download the app, but must first be logged in. </p>
  
  <p>So i want a senerio where a user clicked on the download button, then the code will check if the user is already logged in if not open a page to register, else start the download.</p>