Php errors and jquery errors
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...
Only validating with jquery is not good - you leave your site open to all sorts of attacks. You must validate server-side.
I'm not a jquery user, but I imagine it may be looking for well-formed json object to be returned from your PHP script. If your PHP script is echoing errors, the jquery cannot resolve that to an object and, thefore, is probably throwing its own complaint.
So, best to resolve your PHP errors. The PHP errors are usually quite specific and even provide line numbers where the error occurred. Maybe copy/paste those errors into your preferred search engine and/or this forum to see how to resolve those issues.
Hope that helps.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)