I am working in a form with two separated divs and When I click the Button in the bottom of the form it should redirect me to a new page but as of now it does nothing.
I already tried few things that might fix it like:
- Changing the button type to input type
- Fixing the route for form
- Chaging the action property of form tag into the function name from the controller
Here’s my current progress (Picture of web page where the form is placed):
And here’s my source code for the view (SelectFlight.blade.php):
Here’s my line of code on web.php which is responsible for routing/redirecting to a new page when Submit button was clicked:
Finally the snippet source code of a function inside my controller (BookController.php):
Why does the form does nothing when I clicked it? and how can I fix it in order to redirect a user to register page when the submit button is clicked?
As @Curstis suggested. You have several form tags scattered around this page. Now, I have removed them for you and just left the first and last form tags. So try the following code instead and the form should submit now. Always ensure your submit button is WELL bound like this: < form >…< button> … < / button> < / form >. for it to work.