Search code examples
htmlweb-serviceswebnewsletter

is it possible to save data from a html form to an excel file with web services?


I have made a newsletter with html and CSS, and in that newsletter I have 4 text boxes which takes the users name,family name,phone number,email address.Can I use a web service to transfer this data from the HTML form to an excel file, or a database on a host?

Is it possible at all? saving data from a html form to an excel file with web services?

If yes, how?


Solution

  • First of all, I assume you save this data into a database. That would be my approach at least.

    So:

    • Send the data using a form to your server application (ASP.NET or something alike);
    • Save it in the database (or process it right away);
    • Then use a package like EPPlus to generate the Excel file in a web service. See their project page about the how to do that;
    • Return the result to the client.