jquery - Server side validation on multiple step form with AJAX PHP? -
i have multi-step form (4 steps) has client side validation using jquery , uses ajax process form inputs. on every next button click js validation run.
but client side validation not enough. setup server side validation too.
so prefer using ajax server side validate form allows same ux client side validation. use instructions here: http://fearlessflyer.com/how-to-ajax-validate-forms/
but how can follow similar scripts post multi-step wizard form rather simple form?
- should every next button of step post server side validation , process field's inline error in current step?
- or should form posted server side validation @ final confirmation 4th step? how can relevant form steps inline errors shown when validating form fields right @ last step?
i'm using plain php on server side without frameworks.
your post request should @ 4th , final step of validation. steps should loaded onto html page, can use javascript show section section.
you can have "inline" validation using onblur="" html attribute. function inside called when user unfocuses input box.
for ex: <input type="text" onblur="validate()">
Comments
Post a Comment