how do i buy guns online?

ok cool… now another question lol… im pretty sure I would have already got in trouble if I wasnt allowed to own guns as everyone already knows about the shotgun incident, but as far as the background check goes, will I be alright if I have misdemeanors and have been CHARGED with a felony, but not convicted? id have a hard time getting a pistol permit, but i should still be ok to buy rifles right?