Does anybody know how to copy the URL of the current page and then "paste" the URL automatically into a href tag like this:
<a href="--paste it here--">click</a>
Thanks a lot.
Does anybody know how to copy the URL of the current page and then "paste" the URL automatically into a href tag like this:
<a href="--paste it here--">click</a>
Thanks a lot.
You could use the following:
<?php echo '<a href="http://'. $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'].'">This page</a>; ?>
Altough it is not copy paste but it should get you the current url of the page.