How to send html input array in Django?

{% for key,value in request.session.cart.items %}

<input type="name" class="h3 product-title-cart fs-base mb-2" name="productTitle[]" value="{{value.name}}" disabled style="border: none;">

{% endfor %}

tried so:

`request.POST.getlist('productTitle[]')

request.POST.get("productTitle[]")

request.POST.get("productTitle") `

does not work

Вернуться на верх