Check my pictorial guide to using manual lenses on the DPR forum:
K100D (Super) Pictorial guide to using manual lenses
It's written for the K100D Super, but all of Pentax's DSLRs work pretty much the same.
The guide applies to bayonet mount lenses, you can also buy screwmount lenses if you get a screwmount to bayonet adapter, but I have no experience with them so I won't risk giving you potentially faulty information about them.
In the bayonet world, "M" or "K" lenses work as described in my guide. "A" lenses are fully automatic with respect to metering, which means you can use the camera in automatic or "Av", "Tv" and "Sv" modes. The biggest thing you give up with an "A" lens compared to modern lenses that you have to focus them manually.