Hmm... I can see where you are going with this. Theres two ways you can do this:
First, you can use eval put together a variable name out of name and UID like so:
eval("echo \$name{$_GET['uid']};");
OR, the way I would do it (And much more efficient) is this:
<?
$users[1]['name'] = "john";
$users[1]['function'] = "Administrator";
$users[1]['sex'] = "Male";
$users[1]['age'] = "32";
$users[1]['country'] = "New York, NY, USA";
?>
thats the profile defined, then this:
At the top of the code: $uid = $_GET['uid'];
<td width="166">Name:</td>
<td width="96"><?php echo $users[$uid]['name'] ?></td>
There shouldnt be any problems with this.I am just going to check now...