Attachement form post

I try to add attachments to form "quick post" but I can not display them in "single.php".
I included in my file "function.php"

<br />
function insert_attachment($file_handler,$post_id,$setthumb='false') {</p>
<p>  require_once(ABSPATH . "wp-admin" . '/includes/image.php');<br />
  require_once(ABSPATH . "wp-admin" . '/includes/file.php');<br />
  require_once(ABSPATH . "wp-admin" . '/includes/media.php');</p>
<p>  $attach_id = media_handle_upload( $file_handler, $post_id );</p>
<p>  if ($setthumb) update_post_meta($post_id,'_thumbnail_id',$attach_id);<br />
  return $attach_id;<br />
}</p>
<p>// set $post_id to the id of the post you want to attach<br />
// these uploads to (or 'null' to just handle the uploads<br />
// without attaching to a post)</p>
<p>if ($_FILES) {<br />
  foreach ($_FILES as $file => $array) {<br />
    $newupload = insert_attachment($file,$post_id);<br />
    // $newupload returns the attachment id of the file that<br />
    // was just uploaded. Do whatever you want with that now.<br />
  }<br />
}

and

<br />
<form id="new-post" method="post" enctype="multipart/form-data" action="<?php the_permalink(); ?>"><br />
<p class="form-title"><br />
<label for="post-title"><?php _e('Title', 'hybrid'); ?></label><br />
<input type="text" class="text-input" name="post-title" id="post-title" value="<?php if ( $error ) echo esc_attr( strip_tags( $_POST['post-title'] ) ); ?>" /><br />
</p></p>
<p><p class="form-textarea"><br />
<label for="post-content"><?php _e('Write', 'hybrid'); ?></label><br />
<textarea name="post-content" id="post-content" rows="3" cols="50"><?php if ( $error ) echo esc_attr( $_POST['post-content'] ); ?></textarea><br />
</p></p>
<p><p class="form-tags"><br />
<label for="tags"><?php _e('Tags', 'hybrid'); ?></label><br />
<input type="text" class="text-input" name="tags" id="tags" value="<?php if ( $error ) echo esc_attr( $_POST['tags'] ); ?>" /><br />
</p><br />
<p><?php wp_dropdown_categories( 'show_option_none=Category&tab_index=4&taxonomy=category' ); ?></p></p>
<p> <p class="form-thumbmail"><br />
<input type="file" name="an_uploaded_attachment"><br />
<input type="file" name="another_uploaded_attachment"><br />
 <input type="file" name="yet_another_uploaded_attachment"><br />
</p></p>
<p><p class="form-submit"><br />
<input class="submit button" name="submit" type="submit" id="submit" value="<?php _e('Publish', 'hybrid'); ?>" /><br />
<input class="reset button" name="reset" type="reset" id="reset" value="<?php _e('Reset', 'hybrid'); ?>" /><br />
</p></p>
<p><div class="form-hidden"><br />
<input type="hidden" name="action" value="post" /><br />
<?php wp_nonce_field('new-post'); ?><br />
</div><br />
</form><br />

in "form-post.php" according to the tutorial http://goldenapplesdesign.com/2010/07/03/front-end-file-uploads-in-wordpress/

can you tell me how to display these images in single.php?

thank you