Home > front end >  How about HTML in many rows of data is added to the database
How about HTML in many rows of data is added to the database

Time:09-26

Python3 - Django project
Front desk form to add scores, added to the database after submit

Learn & amp; Nbsp& NBSP raw & amp; Nbsp& NBSP learn & amp; Nbsp& NBSP number & lt;/td>
Learn & amp; Nbsp& NBSP raw & amp; Nbsp& NBSP name & amp; Nbsp& NBSP said & lt;/td>
It & amp; Nbsp& NBSP recognition & amp; Nbsp& NBSP learn & amp; Nbsp& NBSP number & lt;/td>
Learn & amp; Nbsp& NBSP raw & amp; Nbsp& NBSP into & amp; Nbsp& NBSP performance & lt;/td>


{% for student in student_inform_reg %}

{{student. StudentID}} & lt;/td>
{{student. StudentName}} & lt;/td>
{% csrf_token %}

Formmethod="post" style="font - size: 18 px; Width: 150 px "& gt;


Formmethod="post" style="font - size: 18 px; Width: 150 px "& gt;



{% endfor %}


Now submit only after the last line of data, how to get all the data

CodePudding user response:

Obtain all student_inform_reg returns all here

CodePudding user response:

Views. Py it should write ah, how do I get so, how to get all the
Score=request. POST. Get (" score ")
Student_id=request. POST. Get (" student_id ")
  • Related