A collar or flat rim is used as an attachment. I don't know what a toilet flange is. The toilet is connected to the drainpipe in the floor through a metal pipe fitting. The hub that's in the drain pipe is placed on the floor.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.