The url that is being clicked on looks like this: chat.php?/lexxxierose
That is not right. You want something like chat.php?cam=lexxxierose or something along that line. You need a variable name in there to pass in.
So if it is chat.php?cam=lexxxierose then in chat.php you would use $_GET['cam'] to get at the name lexxxierose
So you would not need the array $users in there.
Code:
$cams = new SimpleXMLElement('cams.xml', null, true);
foreach ($cams as $user)
{
if(strtolower($user->username)==$_GET['cam'])
{
echo $user->iframe_embed_revshare;
}
}
That is a simple version of what you need to do.
.