[eluser]Unknown[/eluser]
Hi there!
This is my first question, i would be very pleased if you can help me.
I have to catch the values of a set of dynamic inputs, i am generating the inputs with jQuery. I dont know if it's a good solution to use the same name for all with brackets at the end like this:
Code:
<!-- first set of entries -->
<input type="text" name="nombre_contacto[]">
<input type="text" name="mail_contacto[]">
<!-- second set of entries -->
<input type="text" name="nombre_contacto[]">
<input type="text" name="mail_contacto[]">
<!-- etc... -->
Or just use a counter at the end of the name, like this:
Code:
<!-- first set of entries -->
<input type="text" name="nombre_contacto1">
<input type="text" name="mail_contacto1">
<!-- second set of entries -->
<input type="text" name="nombre_contacto2">
<input type="text" name="mail_contacto2">
<!-- etc... -->
How i can catch every single item at my controller? it's this possible?
Thanks!