0
Good afternoon! I’m putting together a formdata for a post,
formdata = {
'data': '',
'controle': 'ADMIN',
'g-recaptcha-response': recaptcha_response
}
for numero in nDams:
formdata['nu_dam[]'] = numero
i need the attribute nu_dam[], to be repeated as many times as necessary, logically as above, in the result there is only 1 num_dam[], always the last of the list. Have some way for the end of the formdata to be +/- like this
formdata = {
'data': '',
'controle': 'ADMIN',
'g-recaptcha-response': recaptcha_response,
'nu_dam[]' : '123456',
'nu_dam[]' : '123457',
'nu_dam[]' : '123458',
'nu_dam[]' : '123459'
}
Thanks for your attention!
use a list as value
– Elton Nunes