Expose for the background, not the subject. A bright background without much front lighting on the subject is important. You can then increase blacks in photoshop to make the silhouettes nicer.

Use the camera in av mode to see what exposure the camera wants to make for the background.. take a shot and make sure it looks good. Then just switch the camera to manual, input those settings and see what comes out.