2012-07-13 96 views
0

早安人,如何將表單數據發送到電子表格。 XLS

我有一個形式做了一個網站,但形式只發送填寫表格的網站的信息:http://submit.jotformz.com/submit/21933800226649/,我想填寫表單中的數據應保存在電子表格中。 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> 

我只需要一些簡單.. 可能有人給予幫助?

+0

爲了這個工作,你將不得不從收集的形式信息,並一起解析服務器上的電子表格。你使用了什麼後端技術(ASP.NET,php等)? – 2012-07-13 14:34:07

+0

我正在使用PHP ... – user616324 2012-07-13 14:43:27

回答

0
+0

好吧,但是我如何爲我的表單執行此操作,將數據發送到電子表格? 我不明白.. – user616324 2012-07-13 16:43:46

+0

在這裏閱讀:http://www.tizag.com/phpT/forms.php/然後,把你從兩篇文章中學到的東西放在一起。 – 2012-07-13 16:49:28

+0

謝謝,但是您還沒有準備好一個簡單的示例表單和一個電子表格工作?所以我可以創建這個例子,因爲我不太瞭解php語言,那麼從頭開始的代碼很複雜,甚至不知道從哪裏開始。 你能給我發送一個帶有3的表單域的例子,它有一個按鈕可以發送,它直接進入工作表? – user616324 2012-07-13 18:34:06