Alert user their email is already in the subscriber database

Greetings, my website is public and has a simple “Subscribe” form that includes.

  1. FirstName

  2. LastName

  3. Email

  4. Submit
    I would like to add code to verify that the email address is not already in the database. So, query the database as someone is typing their email address, so they know before submit. Also, I have a note under the email address that is ready for the error to come up, letting them know that they are already in the db.

Is this possible? If so, can someone share with my how to accomplish this task?

Thank you, in advance.

Jamie