Welcome Guest, Not a member yet? Register   Sign In
Form Validation and Arrays
#3

Once you call form validation for a field with square brackets, you already seem to know it's an array, don't you?
I guess your form contains multiple fields with name="data[]".
These fields are posted as an array.
In your form validation routine, you must check which of those have a value or not.
Reply


Messages In This Thread
Form Validation and Arrays - by coldlamper - 02-04-2016, 04:25 PM
RE: Form Validation and Arrays - by freddy - 02-04-2016, 07:53 PM
RE: Form Validation and Arrays - by Wouter60 - 02-05-2016, 08:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB