Many people want to know how people use the bathroom in space. It is often asked for some reason. This explains it for those who are curious. It is definitely not done the way it is on earth. This is due to issues of gravity and other things. Scientists actually had to spend a lot of time figuring this out.
How to go to the Toilet in Space