get post images to link to external sources

http://codex.wordpress.org/Function_Reference/get_post_meta

wouldn’t echoing get_post+meta in the a link be best?

<a href="https://wordpress.stackexchange.com/questions/12095/<?php echo get_post_meta($post->ID,"externalurl", true) ); ?>" rel=...and so on