How to generate a notification when two elements are selected from two diff

I have two combo boxes named Name and Project and a check box named Reject. when I select one element from Name and one from Project and when I click on reject, It should be stored in database and when I try to select same elements next time, I would like to generate a notification that this name has been rejected. How can I do this?