I have been readng this site for a long time and have found it to be a valuable resourse. Thank you all very much for the time you take to assist others. Kudos to you all.
Ok here is the scenario ...
I am using a content management system written in php.
the system allows me to use html blocks.
in one block I have a zip code store search with javascript input validation plus php server side validation if anything makes it past the client side js.
in anotehr block I have another submission form for a sign up with client side javascript validation and php server side validation if anything makes it past the client side.
the javascript validations seem to conflict with each other.
By that i mean if i click submit on the one form, the other forms client side validation kicks in.
is there a way to separate the forms in terms of submitting and validation on the client side javascript ?
i fire off client side validations with the 'onSubmit()' function by the way.
ALSO, on the zip code entry form I have javascript to prevent them from entering anything but numbers which also conflicts with the other user submissin form.
I know there must be a way to name and separate these forms and the validation ... i just dont know how.
any help is appreciated .. .thanks
ps- yes i know client side validation isnt perfect, but my thinking is that anything that the client side validation stops is less resource consumption on the server backens php validation ... and i do have it all validated with php in case anyone tries to inject.
thanks again !