currently in my form i have both type of error messages.. what i am doing is just hide the div that contain php errors..i am only validating with query.. is this a good approach.. more in view source page my php errors also show but with display:none property... please share your views on this...