One of the best ways to get published is to follow the advice of someone who is a lot further along this journey. Not every successful, published author takes the time to give advice, but there are some.
Simon Haynes is the author of the Hal Spacejock series of novels, and lives in Perth, Western Australia. His website has a series of well-written articles both on the "Act of Writing" and the "Business of Writing". Remember, you need to write well to get published.
Start by reading Mr Haynes' article How to get published and work from there. You can access the other articles from the "Articles" drop down menu on the website. You can even download a free copy of his first novel, Hal Spacejock, on this site.