By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,625 Members | 2,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,625 IT Pros & Developers. It's quick & easy.

download a file from web page

P: 5
hi everybody,

I have created a web page using perl cgi script,in which i need to upload a file from web server which could be downloaded by the end user if they click a button (form).

can anybody suggest me how to do that?

Mopi.
Jan 22 '08 #1
Share this Question
Share on Google+
1 Reply


harshmaul
Expert 100+
P: 490
if the file is already on the server then.....

<a href="domain.com/pathtofile/filename.doc">Click here to download</a>

OR

<form>
<input type="button" value="Click here to download" onClick="window.location.href='domain.com/pathtofile/filename.doc">
</form>

If the file isn't on the server thats a whole different kettle of fish
Jan 25 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.