$url=$_SERVER['REQUEST_URI']; echo '<center><input type="text" value="Ссылка"></center>';
echo 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];