Forum Moderators: coopster
Of course you can use PHP ;)
We have a great thread in our Library [webmasterworld.com] that will guide you through the process: PHP User Authentication and Passwords [webmasterworld.com].
If you need further guidance, the folks here at WebmasterWorld will be more than willing to help :)
Good luck!