The values which i have entered gone out if i submit the form with any validation error. I want remaining values has to be stay in particular field except the validation error filed
Do you varify this in Javascript? If yes, just add the following to your form header and replace VarifyForm
with your own function name. If the form is return true;
in your function and if it isn't valid return false;
onSubmit="return VarifyForm();"
While you're validating you can save the submitted data in a $_SESSION
variable. When you redraw the form you can populate the fields with it.