Playing chess on the internet requires an interface program. On the Internet Chess Club you probably use Dasher. On the United States Chess Server you need USChess Live. On other servers Winboard is a popular choice. Some players use Fritz on PlayChess.com.
These interface programs can automatically store your games in a PGN file as you play them.