I tried to get this to work on a fiddle looking for an email address on each line. How would you use this method instead to solve the problem?
The best I could do add an m modifier and then it would match if there was an email address on ANY line.
Zebra_Form has integrated cross-site scripting (XSS) prevention mechanism that automatically strips out potentially malicious code from the submitted data, and also features protection against cross-site request forgery (CSRF) attacks.
It also prevents automated SPAM posts, out of the box and without relying on CAPTCHA by using honeypots.
But this time, the instead of on submitting the form, validations are on field level, i.e. Sure that will be preety interesting to learn and share as well.
It sets the focus to the input field until the user supplies a valid value.is the external Java Script file which contains the Java Script ocde used to validate the form. Notice that for validation, the Java Script function containing the code to validate is called on the on Submit event of the form. Flowchart : Here is the entire Java Script used for validation of the form.For the sake of demonstration, we have taken five countries only. function form Validation() function userid_validation(uid,mx,my) function passid_validation(passid,mx,my) function all Letter(uname) function alphanumeric(uadd) function countryselect(ucountry) function allnumeric(uzip) function Validate Email(uemail) function validsex(umsex,ufsex) Flowchart : Download the Validation code from here.for explaining I checked and understood I called the validation twice.and missed the ID on the form it seems to work with name as well.
When the user does so, they may proceed and can supply value to the next available field.