PHP: a button that opens a link with the current URL? [duplicate]

I’m looking for a way to place a button onto my website for reporting the current page the User is looking at. I do need the Button to open a new href tab (and there’s what I do not know) and include the URL where the User clicks on the button.

Example:

User clicks on the “Report” Button at https://example.com/image/xr339r5 and a new tab opens as https://example.com/support/index.php?a=add&category=2&url=https://example.com/image/xr339r5

Still learning here – so thank you for your help ❤

I have not found a solutution for this so far.