How can I get a player's name?

I need to be able to get a player's name so I can use it in later commands.
Continue to help post