Where can I find an online PHP form validator script library to use? I
have tried hacking the one here at work for weeks now and it's getting
more and more impossible to customize, especially now with form
elements that turn out to be arrays that have to be compared with one
another!
I have one form element, languages, a checkbox group. Beside each
checkbox is a dropdown, proficiency (which will become proficiency[]
alongside languages[]). The crux of the matter is that I have to
compare a checked language with the selected proficiency, the
proficiency dropdown beside the checked language must be selected;
furthermore, at least one language must be checked, up to 4.
To complicate matters further, Javascript client-side validation is
forbidden due to Section 508 U.S. Government compliance putting a lock
on any client-side validation script. Section 508 dictates that all
things in <script> tags must be followed by <noscript> corresponding
logic, which is impossible for validation, so no client-side
validation.
I am tired of hacking this existing set of classes and about 50
methods per class to validate more the more complicated forms I have
to develop. I didn't even mention that you have a group of form
elements pertaining to "job history": about 15 textboxes, 3 radio
buttons and 5 dropdowns - PER JOB HISTORY that will dynamically appear
per user clicking a "Add New Employment History" button. So now you
will have jobTitle[], jobAddress[], jobStartDateMon th[],
jobStartDateYea r[], jobEndDateDay[], etc.
So, basically it's either I keep hacking at the existing code.. or I
find an existing form validator package out there. Recommendations ,
anyone?
Thanx
Phil
have tried hacking the one here at work for weeks now and it's getting
more and more impossible to customize, especially now with form
elements that turn out to be arrays that have to be compared with one
another!
I have one form element, languages, a checkbox group. Beside each
checkbox is a dropdown, proficiency (which will become proficiency[]
alongside languages[]). The crux of the matter is that I have to
compare a checked language with the selected proficiency, the
proficiency dropdown beside the checked language must be selected;
furthermore, at least one language must be checked, up to 4.
To complicate matters further, Javascript client-side validation is
forbidden due to Section 508 U.S. Government compliance putting a lock
on any client-side validation script. Section 508 dictates that all
things in <script> tags must be followed by <noscript> corresponding
logic, which is impossible for validation, so no client-side
validation.
I am tired of hacking this existing set of classes and about 50
methods per class to validate more the more complicated forms I have
to develop. I didn't even mention that you have a group of form
elements pertaining to "job history": about 15 textboxes, 3 radio
buttons and 5 dropdowns - PER JOB HISTORY that will dynamically appear
per user clicking a "Add New Employment History" button. So now you
will have jobTitle[], jobAddress[], jobStartDateMon th[],
jobStartDateYea r[], jobEndDateDay[], etc.
So, basically it's either I keep hacking at the existing code.. or I
find an existing form validator package out there. Recommendations ,
anyone?
Thanx
Phil
Comment