<?php echo '<a href="mycgi?foo=', urlencode($userinput), '">';
You have javascript disabled. You will not be able to edit any code.