When do I use the terms to/too?

Please give me an example.

To be or not to ; that is the question.

I want to go to the movies. (-- used as a part of an infinitive and as a preposition

It was too hot to cook.

The children want to go, too.

http://dictionary.reference.com/browse/to

http://dictionary.reference.com/browse/too