Hi,
even if I think it's a bit strange do do such a thing, you can do that :
in your index.php :
// where you want the file to be included :
if ($special_link == 1)
{
include ('my_special_file.php');
}
// and the hyper-link
print"<A HREF=\ "index.php?special_link=1\"> click here </A>";
That way, you are calling yourself (index.php), but this time with a special parameter set to 1, son you can distinguish the two
cases, with or without (normal case, the first time) the parameter.
PS: Use
if ( $_GET['special_link'] == 1)
instead of
if ($special_link == 1)
if you PHP engine is recent ( 4.2.x )
Hervé.