PHP Signup form with AJAX Validation

Discussion in 'PHP' started by webcare, Feb 8, 2012.

  1. #1
    Anyone have a ready signup form in php with AJAX validation? I need it in php. If anyone point me to a good tutorial or can give code for it then its ok.
     
    webcare, Feb 8, 2012 IP
  2. awood969

    awood969 Member

    Messages:
    186
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    40
    #2
    All you should need to do is validate your fields in JavaScript (or jQuery, MooTools etc) and then use a POST XMLHttpRequest (Using jQuery something like $.post or $.ajax) to send the data to a PHP file behind the scenes. The PHP file should do all these checks again (This is to ensure that people don't manually send data through, the reason for the JavaScript checks is to keep the HTTP requests down to a minimum) and then send a success or failure code back to the JavaScript which will respond accordingly.

    Thanks
    Andrew
     
    awood969, Feb 9, 2012 IP