# Get List from POST Data - Django


<div class="trix-content">
  Recently I tried sending a list through a form using something like <code>&lt;input name="my_list[]" value="some val"&gt;</code>.  When this form is submitted all of the inputs with that name are grouped together for easy access.  In Django, one would think you could simply access the list using <code>request.POST['my_list[]']</code>.  <em>This is not the case. </em>Using that command will give you the last value.  <a href="https://code.djangoproject.com/ticket/1130">Django says this is a feature</a> and to get the list use <code>request.POST.getlist('my_list[]')</code>.

Just an FYI and reminder to myself.
</div>

