I have created a membership script but I have omitted one crucial factor. The script doesn't check if the email address is already in the database. Can anyone advise how I check if the an input from a field is already in the database?

(I kept entering the same email address whilst testing)