DavidBergevoet / Setup-Reservation

0 stars 1 forks source link

When refreshing the page, new reservation is made #6

Closed InzeNL closed 3 weeks ago

InzeNL commented 3 weeks ago

If I load the page, and make a reservation, it will do a form-submit. This means that when I refresh the page, my browser asks me if I want to resubmit the form. If I do, another, identical reservation is made.

I'm not sure yet what the fix for this would be, but it would be nice to be able to refresh the page without having to worry about accidentally making another reservation

InzeNL commented 3 weeks ago

Ajax might be a possible solution, but I'm not sure how Flask handles form validation like this