SyntaxFix
Write A Post
Hire A Developer
Questions
Use this:
<a href="<?php echo(($_SERVER['HTTPS'] ? 'https://' : 'http://').$_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); ?>">Whatever</a>
It will create a HREF using the current URL...