Thanks for your advise. I thought of validating the rights to the record but it is too much work.
I found a more simple and elegant solution. It uses session variables and redirection. I created a very generic module called DrillDown.php that takes two parameters - the record ID and the destination form. With these in mind, I'm sure you can figure it out.
<?php
session_start();
$RECNO = $ID;
session_register('RECNO');
header("Location: " . $Dest);
?>
In master page, code the [A HREF] tag to point to DrillDown.php and pass the 2 parameters as part of the tag. For example
[A HREF="DrillDown.php?Dest=Detail.php&ID=1]
In detail page, read the $RECNO session variable. Note that detail page does not have $RECNO value in URL.
Pls. try and let me know if there are bugs/problems.
Thanks.