
I want to check whether the value which I give for the name textfield already exists in the database. In case if it exists , it should not go to database when I press submit...otherwise it goes to the database. In other words, value for the name should be unique.