How do you get a book published?

how do you go about getting a book published i have no idea. do you just send it to publishers and see what they say or do you have to have an agent for them to be interested or what. thanks x
6 answers 6