The following snippet will display all the WordPress posts in a dropdown list.
<form action="<? bloginfo('url'); ?>" method="get"><select id="page_id" name="page_id"><!--?php
global $post;
$args = array( 'numberposts' =--> -1); $posts = get_posts($args); foreach( $posts as $post ) : setup_postdata($post); ?>
<option value="<? echo $post->ID; ?>"><!--?php the_title(); ?--></option>
<!--?php endforeach; ?--></select><input name="submit" type="submit" value="view"></form>