cavey wrote:
<script>
var name = "<? $name ?>";
</script>
Well that works only once... once the php script has been parsed and send to the browser you can't change the name variable with PHP anymore.
I guess you should look into AJAX.
Another way you could do this is to load a dynamically created image into that popup box...
<a href="javascript:popUpBox('usersID')">
And write a javascript that creates the popup box and fills it with an image source like img.src = "imagecreator.php?uID='+usersID
Another way, which is not the very best, is to have an iframe in the popup box and load the correct info into that... iframeID.src "userInfo.php?uID='+usersID
Loads of ways...
Cheers