Set the text link to a variable when the page is loaded. Then when you don't want the link to show up, set the variable to nothing, or don't set it all.
if ($show_link==TRUE) { $link = "<A HREF=''>Blah</Blah>"; }
else $link = "";
Then you just print the value of $link. If it's been set, it'll show up. Otherwise it won't.
AaronZoller.com