<a href="search.php?s=$session[sessionhash]&action=finduser&userid=$post[userid]"><img src="url of image"></a>