467,874 Members | 1,727 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,874 developers. It's quick & easy.

download a file from web page

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
  • viewed: 1198
Share:
1 Reply
harshmaul
Expert 256MB
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.

Similar topics

3 posts views Thread by James Kirk | last post: by
reply views Thread by Buddy Ackerman | last post: by
3 posts views Thread by Skwish | last post: by
1 post views Thread by Iulian | last post: by
reply views Thread by JD | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.