<form method="post">

<?php $a="http://localhost:8888/trunk/index.php?id=1"; ?>

<input type="submit" value="go" />
<input type="hidden" name="test-hsc" value="<?php echo htmlspecialchars($a) ?>" />
<input type="hidden" name="test-enc" value="<?php echo rawurlencode($a) ?>" />

</form>

<?php

var_dump( $_POST );
var_dump( $_GET);