String de mudança de php para amigável URL

<?php
echo '<a href="mycgi?foo=', urlencode($userinput), '">';
?>
Thoughtless Tortoise