the code is as follows:
view.py
.
@ approval.route ("/ submit", methods= ["GET"," POST"])
@ login_required
def _ submit ():
form = LEForm()
if current_user.can(Permission.WRITE) and request.form.get("submit", None) == "":
post = Post(
w=form.w.data -sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp-sharp
)
db.session.add(lepost)
db.session.commit()
.
html
.
< td > < input type= "text" id= "w_location" name= "w_location" value= "first value" placeholder= "> < / td >
< td > < input type=" text "id=" w_location "name=" w_location "value=" second value "placeholder=" > < / td >
< td > < input type= "text" id= "w_location" name= "w_location" value= "third value" placeholder= "> < / td >
...
in this way, you can only receive the first value, and only one piece of data has been created in the database. How can you automatically receive three values and create three pieces of data in the database? I"m much obliged.