I have a form with approximately 30 fields and thus have 30 separately named variables. Upon submit, I want to validate each variable.
I have done this before with PHP but wanted to know if there's a way to loop through all the returned variables first instead of having to name each of them in an IF/THEN statement.
I know on the JS side you can loop through form elements but I wasn't quite sure on the server side.
Any help is appreciated.
Thanks
Mark