try
<? print "<a href='" .$file . "'>" . $file . "</a><br>"; ?>
I do this lots, works a treat.
The other comment about the ?varname=$varvalue is right too. Depends on whether you are passing your variables down to a set page, or varying the page which gets called.