Quote:
<button class="register-button" onclick="location.href='{{'submit'}}'">Register Now</button>
When you click your button, you throw away anything the user has entered into the form, and make a
GET
request to the "submit" route.
Instead, you need to submit the form. Change the form's
action
to the correct route. Remove the
onclick
from the button, and change it's
type
to
submit
:
<form action="{{'submit'}}" method="post">
...
<button type="submit">Register Now</button>