Return to referring page?

Hi,
I need to modify a button on a plugin I have that will always go back to the referring page when it is clicked.
How would I do that with PHP assigned to the button?
Thanks!

Wouldn’t the be better done in JavaScript than PHP? Just curious…

The reason I ask that is a browser is client-side and JavaScript will know the user’s actions before a server-side language like PHP would. Plus you would have to play with $_SERVER in PHP and that could lead to potential security issues.

I dunno. Would it?

Sponsor our Newsletter | Privacy Policy | Terms of Service