Jump to content

Help with AJAX Registration Form Validation


gengo

Recommended Posts

I need help with the specifics of using AJAX / JQuery to validate a registration form.  Basically, I want the form to indicate if a username has already been taken, or an email address has already been taken (one unique username, one unique email address, etc.) and then not let the person register with the incorrect credentials.  I would prefer for the register button to not even submit if an error occurs.

 

As mentioned by mjdamato in another thread, I already use a php validation page to validate it behind the scenes - AFTER - submission.

 

I don't really need anything too fancy.  Username (must be unique), Email address (must be valid format - but at this time, NOT verified), Password / Confirm Password - four inputs.

 

I would also like to implement a very basic Captcha - this site will be 100% "in house",  used by students in a classroom / instructional environment only.

 

I have tried dozens of tutorials and I just cannot seem to get any of them to work correctly.  Some never reset (after trying a name I KNOW is taken, it gives expected error - the error never resets and every name after that is also "invalid"), and some let duplicate names register despite generating the error message.

Yes, well in the future if you post in the wrong section, don't post a duplicate thread elsewhere. Use the "Report to moderator" link, and ask that the be thread moved, as outlined in the Rules & TOS, please.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.