Web Hosting Talk







View Full Version : html code for download


BM136
06-23-2008, 02:13 AM
Hello,

how can I determine a file size for downloading file in html.

the result I want to appear in my web page like the following..

"click here to download, file size = 1 MB" as example

Thanks in advance

dollar
06-23-2008, 02:42 AM
In just pure HTML I don't believe this is possible. With javascript, PHP, ASP, etc... it's a pretty simple task.

Mike - Limestone
06-23-2008, 08:49 AM
If you're unable to calculate the sizes in advance yourself (and insert the informational text into the HTML code), then a dynamically-generated web page may be best. Have you looked into PHP?

-mike