title: Multiple Forms With Input Fields With The Same Name Attribute? Good Or Bad?
body: <p>Is it an acceptable practice to have multiple HTML forms on a page with input fields that share the same name attribute? For example, the page contains a listing of all players and users are allowed to vote for the best player so next to each player card there is this form:</p>
  
  <pre><code>&lt;form class="vote-for-player" enctype="application/x-www-form-urlencoded" method="post" action="/index/vote-for-best-player"&gt;
      &lt;input type="hidden" name="player_id" value="1" /&gt;
      &lt;input type="submit" name="vote_for_player" value="Vote" class="input-submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Value attribute of the hidden input field is different for each form, of course.</p>
  
  <p>Let's say there are 20 forms like this on the page so that means 20 input fields with the name equal to "player_id". If I pass that page through HTML validator, it is valid even with the XHTML 1.0 Strict doctype. But is this an acceptable practice from web standards or accessibility perspective?</p>
  
  <p>One thing I know for sure, it makes the server side processing of the page easier as I just need to load value from one POST field called player_id.</p>