I thank you all for the effort you have made to understand the problem I have and help me out.
I have managed to solve the problem. MySQL has a function called password ( PASSWORD('{$HTTP_POST_VARS['txtPassword']}') ) to decrypt the text given and store it in the MySQL database. So even if somebody has access to the database and tries to see the user passwords saved in the table, he/she cant (simple security ah?).
Thank you all again
QUOTE(kalpz @ Apr 17 2007, 10:36 PM)

Are you saying this.
You have a table in MySQL table with a password column.
When for example your displaying the results of a table, do you want the password but in complete invisible state? So you cannot see the input field but there is a field holding a value?
If so, its - <input type=hidden value=$table['password']>