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

You could use jQuery or Zepto (many other javascript libs can do it aswell)

Basicly you listen to the submit event of the form (javascript in your case) then prevent it, modify your data (validate aswell) as u wish, then let the prevented event go along, then your laravel project should have a route specified in the form, get the data, validate, handle it with the query builder or with a model, and make a response to the ajax call.

here is a video about it: https://www.youtube.com/watch?v=mMMz-p-N8rs

dont forget to validate your data either in client side and server side.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

chriz74x chriz74x Joined 8 Apr 2015

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.