Where does pain happen?

Someone stubs her toe. Where is the pain? In her mind ... or in the toe? In a recent study, laypeople indicated that they thought the pain was in the toe. (Via Scientific American Mind)