title: How to use the GET-method to get the id of the href that is clicked
body: <p><br>
  I would like to know how I can use the GET-method in my .php file: forumdocument.php to get the ID of the href that is clicked in table.php<br>
  I hope this is the right way to begin it:</p>
  
  <pre><code>'&lt;a class="formtitellink" href="forumdocument.php" id="$row['ID']"&gt;' . $row['Titel'] . '&lt;/a&gt;' . "&lt;/td&gt;";
  </code></pre>
  
  <p>table.php:</p>
  
  <pre><code>$query = "Select *
          from forum";
  $resultaat = mysql_query($query, $connectie);
  echo "&lt;table border='1'&gt;
  &lt;tr&gt;
  &lt;th&gt;ID&lt;/th&gt;
  &lt;th&gt;Tijd&lt;/th&gt;
  &lt;th&gt;Gebruikersnaam&lt;/th&gt;
  &lt;th&gt;Titel&lt;/th&gt;
  &lt;/tr&gt;";
  
  while($row = mysql_fetch_array($resultaat))
    {
    $_SESSION['row'] = $row;
    echo "&lt;tr&gt;";
    echo "&lt;td&gt;" . $row['Tijd'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['Gebruikersnaam'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . '&lt;a class="formtitellink" href="forumdocument.php" id="$row['ID']"&gt;' . $row['Titel'] . '&lt;/a&gt;' . "&lt;/td&gt;";
    echo "&lt;/tr&gt;";
    }
  echo "&lt;/table&gt;";
  </code></pre>