Thanks for the idea.
but it's still not working. I forgot to post the closing tag, I have it in my code though.
Ok, just tried something.
Here it goes:
<INPUT type="hidden" name="link" value='<?PHP print $fileloc; ?>'>
i also changed:
$fileloc = '<a href=' . $_POST['filename'] . '>FILE</a>';
and now it works like i want it to work.
Thanks a lot.
cheers
A.