1
I am unable to send and read an array via jQuery, could help me?
My sending is like this:
var tipoAtividade = $('#arrayTipoAtividade:checked').serialize();
The variable type Activity is receiving this data:
tipo_atividade%5B%5D=AGUA&tipo_atividade%5B%5D=ALMOCO
How do I read this variable, like when I use a foreach
to read a php array?
Please be more specific. What is
#arrayTipoAtividade
? Try making an example with the HTML of that part as well. What type of request is being sent (GET or POST)?– Jéf Bueno
It seems to me that the variable has some kind of accentuation. The correct would not be to generate something like
tipo_atividade=AGUA&tipo_atividade=ALMOCO
?– jlHertel