www.webdeveloper.com
Results 1 to 2 of 2

Thread: Php errors and jquery errors

Hybrid View

  1. #1
    Join Date
    Mar 2014
    Posts
    63

    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...

  2. #2
    Join Date
    Sep 2008
    Posts
    95
    Hello,

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles