gengo Posted July 7, 2011 Share Posted July 7, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/241358-help-with-ajax-registration-form-validation/ Share on other sites More sharing options...
AyKay47 Posted July 7, 2011 Share Posted July 7, 2011 well I will paste the same response I gave your other identical thread.. if you are comparing the username/email to a database, you will need to use your PHP validation source and link it to your AJAX http request Quote Link to comment https://forums.phpfreaks.com/topic/241358-help-with-ajax-registration-form-validation/#findComment-1239776 Share on other sites More sharing options...
gengo Posted July 7, 2011 Author Share Posted July 7, 2011 Thank you, I am looking into your suggestion. I am brand new to AJAX (first time ever using it for anything). I started this post (identical) because I realized I posted in the wrong section - when it got removed, I wanted this to be here. Quote Link to comment https://forums.phpfreaks.com/topic/241358-help-with-ajax-registration-form-validation/#findComment-1239783 Share on other sites More sharing options...
Pikachu2000 Posted July 7, 2011 Share Posted July 7, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/241358-help-with-ajax-registration-form-validation/#findComment-1239785 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.