1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to make excel file from HTML Form

Discussion in 'HTML & Website Design' started by mansoor88, Jan 17, 2014.

  1. #1
    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>
     
    mansoor88, Jan 17, 2014 IP
  2. Content Maestro

    Content Maestro Notable Member

    Messages:
    1,542
    Likes Received:
    789
    Best Answers:
    14
    Trophy Points:
    265
    #2
    Content Maestro, Jan 17, 2014 IP
  3. meetdilip

    meetdilip Active Member

    Messages:
    196
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #3
    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.
     
    meetdilip, Jan 18, 2014 IP