Support the ongoing development of Laravel.io →
Input Database Forms
Last updated 2 years ago.
0

You will need to use something like ajax to do this.

Last updated 2 years ago.
0

lstables said:

You will need to use something like ajax to do this.

If not using ajax, will it works? when i developed a web application without laravel, i use ajax to take the form value and sent to the server. if i use laravel is it the same or not?

Last updated 2 years ago.
0

You don't need ajax to submit a form from a bootstrap modal. Check your source code in your opening form tag, does everything look right? Are you posting to the correct url? If not, its not going to work.

Form::open(array('url' => 'foo/bar', 'method' => 'post'))

Finally you can dump what you posted from the route you sent it to in order to make sure its working.

dd(Input::all());
Last updated 2 years ago.
0

I realize this is a really old thread but I will respond anyways because this comes up on a google search. Submit does work without AJAX. However, if you want error validation in the modal (so before it submits and closes the modal) you need to use AJAX.

Last updated 6 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

randytan randytan Joined 22 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.