<a href="private.php?do=newpm&userid=$post[userid]"><img src="/path/to/image.gif" alt="" border="0" /></a>