复制并粘贴URL链接

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.

Are you looking for something like this?

echo "<a href='" . $_SERVER['PHP_SELF'] . "'>click</a>";