How do you get an iPhone?

It depends on what country you live in. If you live in the US then you can go into an AT&T Store (Verizon soon as well) and sign up for a contract or order online (with AT&T contract [Verizon coming soon]).
If you live in most other countries that have iPhone you can order an unlocked iPhone online through the Apple Store or through your carriers website/store.