prova con
<a href = modifica.php?id='.htmlentities($r[id]).'&cognome='.htmlentities($r[cognome]).'>nome</a>


ciao