Javascript 如何将表单数据发送到电子表格。Xls

Javascript 如何将表单数据发送到电子表格。Xls,javascript,jquery,Javascript,Jquery,大家早上好 我有一个表单做了一个站点,但是表单只发送表单中填写的站点信息:,我想表单中填写的数据应该保存在电子表格中。xls,每次有人填写并发送新信息时,将从第10行开始自动添加 我表格的代码如下: <script src="http://max.jotfor.ms/min/g=jotform?3.0.3715" type="text/javascript"></script> <script type="text/javascript"> JotF

大家早上好

我有一个表单做了一个站点,但是表单只发送表单中填写的站点信息:,我想表单中填写的数据应该保存在电子表格中。xls,每次有人填写并发送新信息时,将从第10行开始自动添加

我表格的代码如下:

  <script src="http://max.jotfor.ms/min/g=jotform?3.0.3715" type="text/javascript"></script>
<script type="text/javascript">
   JotForm.init();
</script>
<link href="http://max.jotfor.ms/min/g=formCss?3.0.3715" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="http://jotformz.com/css/styles/nova.css?3.0.3715" />
<style type="text/css">
    .form-label{
        width:150px !important;
    }
    .form-label-left{
        width:150px !important;
    }
    .form-line{
        padding-top:12px;
        padding-bottom:12px;
    }
    .form-label-right{
        width:150px !important;
    }
    .form-all{
        width:690px;
        color:#555 !important;
        font-family:'Lucida Grande';
        font-size:14px;
    }
</style>

<form class="jotform-form" action="http://submit.jotformz.com/submit/21933800226649/" method="post" name="form_21933800226649" id="21933800226649" accept-charset="utf-8">
  <input type="hidden" name="formID" value="21933800226649" />
  <div class="form-all">
    <ul class="form-section">
      <li class="form-line" id="id_1">
        <label class="form-label-left" id="label_1" for="input_1"> Nome: </label>
        <div id="cid_1" class="form-input">
          <input type="text" class="form-textbox" id="input_1" name="q1_nome" size="20" />
        </div>
      </li>
      <li class="form-line" id="id_3">
        <label class="form-label-left" id="label_3" for="input_3"> Opções </label>
        <div id="cid_3" class="form-input">
          <div class="form-single-column"><span class="form-radio-item" style="clear:left;"><input type="radio" class="form-radio" id="input_3_0" name="q3_opcoes" value="Opção 1" />
              <label for="input_3_0"> Opção 1 </label></span><span class="clearfix"></span><span class="form-radio-item" style="clear:left;"><input type="radio" class="form-radio" id="input_3_1" name="q3_opcoes" value="Opção 2" />
              <label for="input_3_1"> Opção 2 </label></span><span class="clearfix"></span><span class="form-radio-item" style="clear:left;"><input type="radio" class="form-radio" id="input_3_2" name="q3_opcoes" value="Opção 3" />
              <label for="input_3_2"> Opção 3 </label></span><span class="clearfix"></span>
          </div>
        </div>
      </li>
      <li class="form-line" id="id_5">
        <label class="form-label-left" id="label_5" for="input_5"> Comentarios </label>
        <div id="cid_5" class="form-input">
          <textarea id="input_5" class="form-textarea" name="q5_comentarios" cols="40" rows="6"></textarea>
        </div>
      </li>
      <li class="form-line" id="id_4">
        <label class="form-label-left" id="label_4" for="input_4"> Idioma </label>
        <div id="cid_4" class="form-input">
          <select class="form-dropdown" style="width:150px" id="input_4" name="q4_idioma">
            <option>  </option>
            <option value="Portugues"> Portugues </option>
            <option value="Ingles"> Ingles </option>
          </select>
        </div>
      </li>
      <li class="form-line" id="id_2">
        <div id="cid_2" class="form-input-wide">
          <div style="margin-left:156px" class="form-buttons-wrapper">
            <button id="input_2" type="submit" class="form-submit-button">
              Enviar
            </button>
          </div>
        </div>
      </li>
      <li style="display:none">
        Should be Empty:
        <input type="text" name="website" value="" />
      </li>
    </ul>
  </div>
  <input type="hidden" id="simple_spc" name="simple_spc" value="21933800226649" />
  <script type="text/javascript">
  document.getElementById("si" + "mple" + "_spc").value = "21933800226649-21933800226649";
  </script>
</form>

JotForm.init();
.表格标签{
宽度:150px!重要;
}
.表格标签左{
宽度:150px!重要;
}
.表格行{
填充顶部:12px;
垫底:12px;
}
.表格标签权利{
宽度:150px!重要;
}
.全部{
宽度:690px;
颜色:#555!重要;
字体系列:'Lucida Grande';
字体大小:14px;
}
  • 诺姆:
  • Opções Opço 1 Opço 2 Opço 3
  • 科门塔里奥斯
  • 习语 葡萄牙人 英格尔
  • 羡慕
  • 应为空:
document.getElementById(“si”+“mple”+“\U spc”).value=“21933800226649-21933800226649”;
我只需要一些简单的。。 有人能帮忙吗?

如何使用PHP


如何在PHP中使用

为了使其正常工作,您必须从表单中收集信息,并在服务器上一起解析电子表格。您使用的是什么后端技术(ASP.NET、php等)?好的,但是如何将数据发送到电子表格?我不明白。在这里阅读:那么,把你从这两篇文章中学到的东西放在一起。谢谢,但是你还没有准备好一个简单的示例表单和一个工作的电子表格吗?所以我可以创建这个例子,因为我不太懂php语言,那么从一开始做代码就很复杂,甚至不知道从哪里开始。你能给我发一个带3的表单字段的例子吗?它有一个按钮可以发送,直接进入工作表?