<form method="POST" action="/cgi-bin/logger.cgi">
<input type="submit" value="Data.txt" name="file1" id="download1">
</form>
and in the perl script I can nicely see that the person has clicked on the button and what they clicked on, and can write it to a file (i'm using the CGI module and I do $query->param('file1'). In the same directory as the html file I have the file they want (call it data.txt"). How do I start the download?
I want the user to be returned to the download page. Right now, I do that with
print $query->redirect($downloadURL);
and that works.
So, basically, everything works except the user doesn't get the file :-) How do I do that?
print "Location: [domain.com...]