onclick events execute javascript code, not serverside code. If you want to achieve something like this, use ajax (jquery + ajax if you like) to make request to a server with javascript
Yes im not saying onclick event neccearly. Im saying something in that range. And i know You cant achieve that using PHP, im asking if somone knows a PHP Framework that can achieve that. @stetim94
I have already checked that stackoverflow question @benjnev . And i already know how to do it with Ajax. But im asking for an alternative easy way. Like can larval do it? Or any other PHP Framework? Thankyou
It is not php-framework related, i already suggested to use ajax instead. If you combine jquery with ajax it becomes easier, but what exactly are you trying to achieve?
You can use php to fetch data from a database, and then render that to a page, and make a anchor to that page
This is not even php related (depending on what you are trying to achieve), it is just that certain things are client side, other things are server side, both have strong points and weaknesses
So it not php related, php is a server side language. Any server side language would be unable to do this. The link is on client side. So a click function on the link is in the clients browser, thus client side