I want store passwords encrypted in database. For this purpose I use
If you want some sort of notification to appear without the page reloading, you need to use AJAX.
I think the best way to do what your asking is make a database and set a column that gives an id of 0 or 1. If the user clicks it then it sets that id=1. You can then check whether id = 1, and display an message using AJAX.
Look here for more info http://api.jquery.com/jquery.ajax/