I've got this code which produces a list of links. I'm having trouble working out how to know what link the user has clicked on.
Code: Select all
while ($rows=mysql_fetch_array($modulelist))
{
$_SESSION[module]=$rows[ModuleName];
echo "<a href='lecture.php'>" . $rows[ModuleName] . "</a><br>";
}I know i could change the URL but i don't know how to get the variable to read from the URL
I'd really appreciate any help. Thanks