After trying the javascript version I stumbled upon the "onclick" function and used that to open a window as follows:
page.php3
<a href=\"{$_SERVER['REQUEST_URI']}\" onClick=window.open('http://www.mysite.com/addlink.php3?id=$id','picture','toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=yes,resizable=yes,width=225,height=170,titlebar=yes')>Add to myLinks</a>
addlink.php3
<?php
session_start();
include ("connect.php3");
if (!isset($_SESSION["username"])) {
print "There has been an error:<br>
You have either been automatically logged out or you do not have a myLinks account.<br>
<br>
Please login or register.
<br>
</font><a href=javascript:window.close()>Close
Window</a> </div>";
} else {
$sql = "INSERT INTO $tablelinks (id,userid,link)
VALUES ('','$username',$id)";
$result = mysql_query($sql) or die("Sorry, the link was not added.");
print "<div align=center>Successfully Added<br><a href=javascript:window.close()>Close
Window</a></div>";
exit();
}
?>