Skip to content

How to validate inputs when I don't know how many of them are there? #3752

Answered by galaczi
galaczi asked this question in Help
Discussion options

You must be logged in to vote

So if I give the same name to the inputs in each row, Adonis puts the values from the same named input in an array. So I can just loop over each array picking out the values for each row. Is this a common practice?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@WeyIin
Comment options

Answer selected by galaczi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants