I want to have a database of contacts that has, for example, the email addresses of people. So I know how to make this database, but I want to be able to have the person type a name (of a contact) in a textbox and the program will be able to recognize the name as a contact and be able to send an email to that person with just their name in the textbox.
I know I could use a conditional statement that would say if the textbox has a certain name entered then use a certain email address. THe only problem is what if the person changes the database of contacts? How could I make this work for whatever contacts a person enters into the database?
It would be easy just to have a textbox linked with the database, but I wanted to have it so that if the person entered more than one name in the textbox, then it would send the email to both people.
I know I could use a conditional statement that would say if the textbox has a certain name entered then use a certain email address. THe only problem is what if the person changes the database of contacts? How could I make this work for whatever contacts a person enters into the database?
It would be easy just to have a textbox linked with the database, but I wanted to have it so that if the person entered more than one name in the textbox, then it would send the email to both people.
Last edited: