in reply to Specifying filename for download
but I would not trust the user - make sure you untaint that file name first.use strict; use CGI; my $CGI = new CGI; if (my $file = $CGI->param('file')) { print $CGI->redirect('http://localhost/'.$file); } else { print $CGI->header; print "stuff"; }
Jeff
R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--
|
|---|