Undoubtedly! But you can also use ASP. As PHP is an open source and stronger platform it is preferred by most of the developers.
Yes, PHP is the language, used allong with SQL Here is a link to get you going http://php.about.com/od/finishedphp1/ss/php_login_code_4.htm