On that 12 inch measurement from the back, make sure you include the thickness of the drywall and tile. It needs to be 12 inches from the finished wall. I usually set the toilet 13 inches from the rough stud wall.
Black and decker makes a real nice book on home plumbing remodeling. Pick it up for a birds eye view of your plumbing systems.
A little light reading helps alot.