title: Read dynamic FormData with FastApi
body: <p>I can read JS FormData with Python FastAPI from my HTML code like this:</p>
  <pre><code>&lt;form&gt;
   &lt;input type =&quot;number&quot; name=&quot;test1&quot;&gt;
  &lt;/form&gt;
  </code></pre>
  <p>Python FastAPI:</p>
  <pre><code>@app.post(&quot;/zip&quot;)
  async def buildScaffolding( test1: int=Form(...)):
      print(test1)
      return &quot;&quot;
  </code></pre>
  <p>But now I want to change the HTML form dynamically. Like when you buy items in a shop:</p>
  <pre><code>&lt;form&gt;
   &lt;input type =&quot;number&quot; name=&quot;numberItems&quot;&gt;
   &lt;!-- item 1--&gt;
   &lt;input type =&quot;text&quot; name=&quot;item_1&quot;&gt;
   &lt;!-- item 2--&gt;
   &lt;input type =&quot;text&quot; name=&quot;item_2&quot;&gt;
   ...
   &lt;!-- item n--&gt;
   &lt;input type =&quot;text&quot; name=&quot;item_n&quot;&gt;
  &lt;/form&gt;
  </code></pre>
  <p><strong>Question:</strong> How can I process the input with Python FastAPI, if I don´t know how many items will be sent?</p>