title: How to save multiple forms in on page in Django
body: <p>I am trying to make a betting app in Django. After a user signs in, there's a page with several forms, each responsible for saving the result of a match. Each form takes two integer inputs (number of goals for each team). I want to have a save button at the end of these forms such that when clicked, the input data are recorded in the database. I have two models, Game and Bet. Game is responsible for storing the actual result of games, while Bet is responsible for recording user predictions.</p>
  
  <pre><code>class Game(models.Model):
      team1_name = models.CharField(max_length=100)
      team2_name = models.CharField(max_length=100)
      team1_score = models.IntegerField()
      team2_score = models.IntegerField()
  
  class Bet(models.Model):
      user = models.ForeignKey(User)
      game = models.ForeignKey(Game)
      team1_score = models.IntegerField()
      team2_score = models.IntegerField()
  </code></pre>
  
  <p>And here's the main page</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-html lang-html prettyprint-override"><code>{% for game in games %}
  &lt;form action="../place_bet/" method="post"&gt;
    {% csrf_token %}
    &lt;table&gt;
      &lt;tr&gt;
        &lt;th class="table-col"&gt;&lt;label for="team1_score"&gt;{{ game.team1_name}}&lt;/label&gt;&lt;/th&gt;
        &lt;th class="table-col"&gt;{{ form.team1_score }}&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td class="table-col"&gt;&lt;label for="team2_score"&gt;{{ game.team2_name}}&lt;/label&gt;&lt;/td&gt;
        &lt;td class="table-col"&gt;{{ form.team2_score }}&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
    &lt;input type="submit" value="Submit" id="submit-button"/&gt;
  &lt;/form&gt;
  {% endfor %}</code></pre>
  </div>
  </div>
  </p>
  
  <p>My question is how I can capture the input fields for different forms in the <code>place_bet</code> view that is triggered when submit button is clicked.</p>