Jump to content

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.

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

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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