Hi,
you might want to try something like this (if both username and codes are get parameters):
echo "<a href =\"approve.php?username=".urlencode($myrow["username"])
."&codes=".urlencode($codes)
."\" target=\"_blank\"> Hire this member </a><p>";
In approve.php you can access these values with $GET['username'] and $GET['codes']
Thomas