I have an Excel Spreadsheet (.xls) which i want the users to be able to download it from my webpage. Maybe a 'download' button on the page and when users click on it, the file will be downloaded.
May i know how can this be done? Code snippets and references will be appreciated.
Select File • Select Save As • Click on Save as type drop-down box arrow • Select Microsoft Excel Workbook\ • Enter File Name ________ . xls • Select OK. The data is now available for you to use as your needs require.
You can use simple html links:
link:
<a href='/path/to/excel/file.xls' target="_blank">Download</a>
button:
<form>
<input type="button" value="Download" onClick="window.location.href='/path/to/excel/file.xls'">
</form>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With