i am creating a form similar to http://www.centreforsight.com/default.aspx in php alongwith javascript i would like to create a field validator as in the page(when you click the submit button without entering the field you will see that an exclamation mark is shown on the right side of the field) now will this be done using only javascript or will php be also required. has anybody seen any similar code or any tutorial for this? Can somebody help me please?
some validating scripts from my javascript site, hope you'll find the suitable script http://javascriptbank.com/javascript/form/validation-limitation/
Just a tip: client-side only validation is almost the same as having no validation at all. Ie: if the user turns off javascript, normally the form will submit without problem, even though some or all of the fields are either empty or filled with invalid data. Therefore a server-side validation should also be used, to verify the input on the server before processing said input. Javascript validation is only useful for the user - not for the processing of data.