   <form action="test.php" method="post">
        <p>Ваш Текст: <input type="text" name="text" /></p>
        <p><input type="submit" /></p>
    </form>
<?php
$text2 = $_GET['text'];
$text = urlencode($_POST['text']);
echo "Ваш текст из формы:".htmlspecialchars(urldecode($text));
echo '<br>';
echo "Ваш Текст из ссылки: ".htmlspecialchars(urldecode($text2));
$link = array( 'text' => $text);
$newLink = http_build_query($link);
?>
</br>
<a href='test.php?<?=$newLink?>'>Push here: <?=htmlspecialchars(urldecode($text))?></a>