There is a button and a link on a webpage, and both go to the same next page. When a user lands on the next page, I want to know whether they had clicked on the button or the link on the previous page.
How can I get that information in the php for the landing page?
UPDATE:
Add some extra parameter to the link and the button.
For the link:
For the button:
When processing the page inputs, check the
$_REQUEST['source']