What I have is a form with select box named in array
name=s_active[]
what I want to do is prevent the form from being submitted if the array has more than 3 values=yes
I know how to work with arrays but am unsure how to count only ones with a certain value.
Thanks in advance!!
name=s_active[]
what I want to do is prevent the form from being submitted if the array has more than 3 values=yes
I know how to work with arrays but am unsure how to count only ones with a certain value.
Thanks in advance!!