I have a registration form in which the user provides email, re-enters the email address, password, re-enters the password, month of birth, day, year.
User clicks "Register".
If (Javascript is Enabled) { submit the form using ajax } elseif (Javascript is Disabled) { automatically fallback to traditional methods. }
Note. Keep in mind that if the user fills out the form correctly, both methods must confirm that the email address does not yet exist in the database.
source share