June 19, 200818 yr Hi, I have a contact form which is validated with PHP but I would also like to have a javascript that input in to the form field - "This field is incorrect" would any one know who to this? or point me in the direct?
June 19, 200818 yr Here is one example. Are you currently using a javascript library? If you are I'd suggest you used a validator that is compatible with that, if not I'd reccommend a jQuery one.
June 19, 200818 yr Author Thanks I am using the JQuery library however today is the first I look at it, it looks a bit dauntig and huge
June 19, 200818 yr Author that was relativly painless, however it has not stopped my server side validation :-( any ideas
June 19, 200818 yr What do you mean it hasn't stopped your server side validation? If you are planning on only using javascript to check the users input, dont!. Javascript can easily be turned off by the user.
June 19, 200818 yr Author sorry mis-typed, I have server side validation, checking if the fields are null and match my set regular expressions, I added javascript to highlight where the errors are etc, but the javascript is now stopping the server side stuff working.
Create an account or sign in to comment