-
-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to get value from form with multiple inputs with same name and save in db. #734
Comments
Hi ! Could you post an example of your HTML form in this issue ? |
<form class="multisteps-form__form" action="{{url('postform')}}" method="post" enctype="multipart/form-data">
{{ csrf_field }}
<input type="text" name="childrenname[]">
<input type="text" name="childrenname[]">
</form> |
Your issue has nothing to do with Masonite. This same issue will happen with many languages & frameworks when parsing the HTML input fields name parameter. See here for a complete explanation of your issue and how to solve getting the inputs in grouped by the parent https://mattstauffer.com/blog/a-little-trick-for-grouping-fields-in-an-html-form/ Hope this helps |
Describe the bug
how to get value from form with multiple inputs with same name and save in db.
Expected behaviour
how to get value from form with multiple inputs with same name and save in db.
Steps to reproduce the bug
No response
Screenshots
No response
OS
Windows
OS version
window 11
Browser
No response
Masonite Version
4.6.1
Anything else ?
how to get value from form with multiple inputs with same name and save in db.
The text was updated successfully, but these errors were encountered: