Have you ever seen him do it? Spraying is done standing on all four feet, not squatting. A spraying cat lifts it's tail, somewhat arches its back, and...sprays.

Spray is also much more potent and stinky. If it's a urination problem and not a spraying problem, you'll want to get your cat to the vet to be checked for a urinary tract infection. A big reason that some cats pee outside their box is because something is wrong internally. Cats don't really *like* being messy.