store data from a form using just HTML

后端 未结 5 1143
我寻月下人不归
我寻月下人不归 2021-01-03 07:47

I want to create a form (will be filled by users) and store the data in excel stylesheet without using php just HTML ,is that possible?

I dont want to store data an

5条回答
  •  感情败类
    2021-01-03 08:05

    The unqualified response of "You can't write a file from HTML" is inaccurate. While you may need to add some "hidden" fields in your HTML (in order to simplify the exporting of only the data requested and not the questions or other text) it is ABSOLUTELY possible to do this. I've done JUST THAT in the code below - and all I use is JavaScript. No Server required, No Database required, No PHP required.

    Below is the code and a link to the JSFiddle page where you can see it in action:

    
    
    
    
    
    HTML Form Data to Excel
    
    
    
    
    
    
    
    
    QMS Assessment
    No Criteria Question Score
    Q1 Quality Unit Independency Do you have the Quality Unit?
    Q2 Apply PICS GMP Which GMP regulation do you use?
    Q3 Deviation or Non-conformance Do you have a deviation or non-conformance procedure?
    Q4 Complaint Do you have a customer complaint procedure?

    Here is the JSFiddle link: https://jsfiddle.net/MitchinThailand/LV9vr/

    if you want more details feel free to holler.

提交回复
热议问题