I'm trying to check if two values are the same. For example the password and confirm password have to be the same. I have to check these and then to enter data in database. If the values are not same the data will not be entered.
How can i do this? 

Thank you