you could do three things. First) write a script that parses the request, finds the file, increments the file counter, and sends the file back (like download.pl?file=blah). Secondly) do some trickery with hidden form fields, submit and redirection. Thirdly) use some real trickery using various .htaccess thingies (like possibly mod-rewrite)