AJAX validation Form

Discussion in 'PHP' started by jiahui, May 13, 2009.

  1. #1
    I'm a beginner of PHP Programmer. My first project customer require me to do validation Form with AJAX. But i never use Ajax before. Anyone could teach me, how to do it? I would like apply it in Registermember.php.

    Please. Seek someone to help me. :confused:
     
    jiahui, May 13, 2009 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    bartolay13, May 13, 2009 IP
  3. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #3
    Do you know if there is a reason why standard Javascript won't work? Ajax seems a bit of overkill for some simple form validation.
     
    jestep, May 13, 2009 IP
  4. atlantaazfinest

    atlantaazfinest Peon

    Messages:
    389
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Standard javascript wont work because i can save your source, delete the validation and post past the javascript checks.. using ajax allows you to pass the data to a php or other script to check which cant be altered via source. without refreshing the page allow you to bring dynamic secure checks
     
    atlantaazfinest, May 13, 2009 IP
  5. xxKillswitch

    xxKillswitch Peon

    Messages:
    331
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I've found at times when you just want ajax but not the flash of jQuery or prototype, then try Xajax at xajaxproject.org. It works well, is easy to use, but no flash to it. You can create loading messages and do some advanced things with it, plus its fairly lightweight compared to JQuery and others.
     
    xxKillswitch, May 13, 2009 IP
  6. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #6
    Never trust javascript when it comes to form validation..
     
    bartolay13, May 13, 2009 IP