Use href then execute a PHP function : <p>As a disclaimer, I'm quite new to web development and even before I posted this, I have spent hours looking for answers but everything I have read did not help on what I want to do. </p>

<p>I'm basically trying to redirect to a certain page and then execute a php function which also require a variable to be pass to it and is inside a class.</p>

<p>I've read about ajax but people have said that theres no point using it if I want to redirect to another page anyway as its only good to use if you just want to reload a portion of the page.</p>

<p>The most simplistic way I can explain on what I want to do is, when I click on an image, I would like for a new page to be open and then in that said page is all the things about that image. For example, description about it, a short vid and maybe a comment section regarding the image clicked.</p>

<p>Please explain if what I'm trying to do is not possible and if so, please point me in the right direction as to what might be a better way of doing this.</p>
