the basic is the measure ur inseam, and make sure the standover height of the bike that u're planning on getting isn't higher than ur inseam so u don't hit anything valuable. Top tube length is also important.
Sheldon has a page on fitting u can read about
here.
Competitive cyclist also have a
fit calculator on their site. Get out a measuring tape
That should be a good place to start.