Don't forget to use urlencode() if you plan to append the variables to your URL.
i.e.:
<?php
$myvars = "var1=stuff";
$myvars .= "&var2=things";
?>
<a href="mypage.php?<?php echo urlencode($myvars) ?>">My Link</a>
By using urlencode, you ensure that the variables you are passing will be properly formatted for the URL query string.
Note that if you use a form with hidden fields, you do not need to urlencode the values. However, you should use htmlspecialchars on them so that they do not break the form.
i.e.:
<input type="hidden" name="var1" value="<?php echo htmlspecialchars($var1) ?>">
Hope that helps.
-Roy