Hello. I am working on html form. Where i have to save text field data into excel document format when user click on submit button. I am getting problem of saving in excel file. Please help me if anyone know. here is my code which i done yet. <h3> Register & WIN</h3> <div style="margin-top: 136px;"> <div class="row-fluid"> <div class="span5" align="right" style="line-height: normal"> <label style="margin-bottom: 20px !important;"> First Name</label> <label style="margin-bottom: 20px !important;"> Last Name</label> <label style="margin-bottom: 20px !important;"> Email</label> <label style="margin-bottom: 20px !important;"> Mobile Number</label> </div> <div class="span7"> <input style="width: 130px;" id="txtFname" name="txtFname" type="text" /> <input style="width: 130px;" id="txtLname" type="text" /> <input style="width: 130px;" id="txtEmail" type="text" /> <input style="width: 130px;" id="txtPhone" type="text" /> </div> </div> <div class="row-fluid"> <div class="span4"> </div> <div class="span8"> <input style="height: 60px; width: 170px; border: 0px none white;" id="submit" type="button" class="button" src="Images/submit.gif" onclick="Submit()" /></div> </div> HTML: here is my javascript code in head tag <script language="javascript" type="text/javascript"> function Submit() { var myApp = new ActiveXObject("Excel.Application"); myApp.visible = true; var Book = myApp.Workbooks.Add(); var oSheet = Book.ActiveSheet; myApp.workbooks.open("data.xlsx"); } </script>
Just give this a try: http://www.coolutils.com/online-html-converter.php. It's a free online html converter. Or if you want to do the conversion offline, you may try some softwares given here: http://softadvice.informer.com/Free_Html_To_Excel_Converter.html and http://softwaresolution.informer.com/HTML-to-Excel-Converter/. Hope this helps.
Use Google Docs. You can get the end result on a Spreadsheet. It is one of the simplest ways to make a form on a live website.