A chat would probably be best writen in Java. You can learn how to make an applet. look for pergesu on here he knows Java. http://java.sun.com
For a post... I assume you mean a bulleting board. You might want to try
any of those will allow you to code a web board.
If you start today you might know enough in about 1 year to code a full bulletin board like this one.