I'm not sure if I understand the question correctly, but maybe this will help.
Use a select statement on the first page to get the row id(s), and then append to the var. Something like this:
$usr = "username";
$pwd = "password";
$db = "database";
$host = "localhost";
$cid = mysql_connect($host,$usr,$pwd);
if (!$cid) { echo("ERROR: " . mysql_error() . "\n"); }
$SQL = " SELECT * FROM tablename ";
$retid = mysql_db_query($db, $SQL, $cid);
if (!$retid) { echo( mysql_error()); }
else {
while ($row = mysql_fetch_array($retid)) {
$id = $row["id"];
echo("<a href=\"updatepage.php?selectedrow=$id\">");
}
}
That way it will append the row id onto the link url and pass it to the update script.
Hope this helps.