You don't need the form tag. You should pass a variable containing the folder name directly from the href property of a tags. e.g.
<a href="myscript.php?folder=<?php echo $foldername ?>"><?php echo $foldername ?></a>
Be sure to properly check that the directory the user is trying to open is safe to access or you will have nasty security consequences.