is there a function that will force the refresh as soon as someone submits
HTTP doesn't support persistent connections this way, so the server can't force the browser to do anything after the HTTP request has finished.
also how can the server tell if someone is typing...such as on Instant Messenger where it says ("such and such is typing a message")
(I'm talking about IM here, not HTTP) When the user starts typing, the program will send to the receivers "username is typing" and that's how the receivers know. Again, you can't use HTTP to do this.
One way to do this is via Java applets, but you need to create both the server and client, since you can't use the HTTP server.
Diego