title: How to receive an array from a HTML page on Flask back-end
body: <p>I'm taking inputs in a HTML window and storing it in an array using JavaScript.
  I want to return that array to to my Flask server.  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function createTable()
  {
      var name = new Array();
      cn = window.prompt("Input number of features", 1);
      for(var c=0;c&lt;cn;c++)  
      {
          fname = window.prompt("Input feature name", 1);
          name[c]= fname;
      }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form action = "/data", align="center"&gt; 
  &lt;button  class="btn btn-success"  STYLE="background-color: #800080;" onclick ="createTable()"&gt;Enter 
  Details&lt;/button&gt;&lt;/a&gt;
  &lt;/form&gt;&lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I'm using the following line to fetch it on Flask:</p>
  
  <pre><code>feature_names = request.form.get("name")
  </code></pre>
  
  <p>However, it does not seem to be working for me. I want to know if there is a way to get arrays from HTML to Flask.</p>