Those/These types of sites are implemented using (as adam_uk mentioned) server-side scripting. ASP, .NET (ASP.NET, C#.NET, VB.NET), JSP, PHP, Perl, and Python are the most common, and they generally interface with a database of somesort: MySQL, SQL Server, PostgreSQL, mSQL, Oracle ...