Support the ongoing development of Laravel.io →
Input Forms Validation
Last updated 1 year ago.
0

Hi,

Form::text('name') will get Input::old('name'), once you submit your form, the values of those fields will be replaced by Input::old('name'). Since you have the same field names on your textfield, all those fields will be overwritten. I suggest you append like an index/counter to your fields so it each fields will be treated differently.

0

beanmoss thank you for you answer,

But how should I validate then, if each form will have different field name?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

adumskis adumskis Joined 10 Feb 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.