0
Hey, guys, all right?
I am developing a system to register the presence of academics of an educational institution, the form data (Course, disciplines and students) I am searching for web service of their education system, see the image below how it was:
To save the first three inputs is quiet, my problem is that I could not think of how to save this list of INPUTS RADIO inside the table, because the NAMES of the inputs I filled dynamically with the students' Ids, follows the example below:
STUDENT 1:
<input type="radio" name="5334" value="1" /> <!--(Esse representa o "Presente")-->
<input type="radio" name="5334" value="0" /> <!--(Esse representa o "Ausente")-->
STUDENT 2:
<input type="radio" name="5452" value="1" /> <!--(Esse representa o "Presente")-->
<input type="radio" name="5452" value="0" /> <!--(Esse representa o "Ausente")-->
Please if anyone can give me a light I am very grateful.
NOTE: Use PHP 7, apache 2.4 and Laravel 5.4 as a framework.
I don’t know if I understood your question right, but you could go through all the elements of the form with the
.each
ofjQuery
:$("form").each(function(){
 $(this).find(':input')
});
and, based onname
of the element, make yourINSERT
/UPDATE
– Leonardo Pessoa