title: Get cell data using handsontable
body: <p>I'm looking for insert data in my postgre database from a handsontable data grid. So, I created my grid and it works but now, I don't know how to use methods like "getData" or "getDataAtCell" to get what the user will insert. </p>
  
  <p>Here is the code : </p>
  
  <pre><code>&lt;div id="example" class="excel"&gt;&lt;/div&gt;
      &lt;script&gt;
  
      var data = [
                  ["LastName", "FirstName", "Age", "Height"],
                  ["", "","" ,""  ]
  
                ];
  
                var container = document.getElementById('example');
                var hot = new Handsontable(container, {
                  data: data,
                  minSpareRows: 1,
                  rowHeaders: true,
                  colHeaders: false,
                  contextMenu: true
                });   
      &lt;/script&gt;
  
  
      &lt;!--  &lt;a href="#" id="valider"&gt;Submit&lt;/a&gt;--&gt;
      &lt;button type="button" class="btn btn-default" id="submit_button"&gt;Submit&lt;/button&gt;
  
  &lt;script&gt;
      $(document).ready(function(){
          $('#submit_button').click(function(){
              //alert ("test");
  
              //getDataAtCell(1,1);
  
              &lt;?php 
                  //$conn_string = "host=localhost port=5432 dbname=ita2015 user=postgres password='1234'";
                  //$dbconn = pg_connect($conn_string);
  
                  //$sql = "INSERT INTO test_perso.etudiant(id_etudiant, nom_etudiant) 
                  //        VALUES('5', ".data[1][0].");";
                  //$res = pg_query($sql) or die("Pb avec la requete: $sql");
  
  
                  //echo data[0][0];
              ?&gt;
              var temp;
  
              temp = $("#example").handsontable('getCell', 0, 0);
              alert(temp);
          });
  
      });
  
  &lt;/script&gt;
  </code></pre>