How to send several times the data of the same form without reloading or deleting the data?

0

Project link: link

User: Cristhian

Pass: 123

I must report the hours that a worker uses to perform a task, I have 7 workers then I duplicate the form where I report the hours, but when sending one the information of the other forms is deleted because it reloads the page, for now I only have it duplicated once so I can report 2

How can I reward this question?

    
asked by Saul Salazar 11.10.2018 в 16:33
source

2 answers

1

First, a doubt is born to me, are you going to create a form for each collaborator? That should be dynamic as you will do in the future when the number of collaborators grows ?.

Going to the problem as such, you need to use ajax to send the form without submitting. I leave a link of how it is done:

submit form ajax jquery

Greetings!

    
answered by 11.10.2018 / 17:11
source
0

I can think of session variables for each user and at a given moment you record the time of entry and exit in a database.

    
answered by 11.10.2018 в 16:36