codice:
# in index.html:
echo "<a href='index_.php?SID' onClick=sceltaeffettuata($id)>";
echo "<img src=$perc_off name=$nome_puls /></a>";

# nel modulo che ho incluso:
function sceltaeffettuata($id)
{
  $_SESSION['scelta']=$id;
}
questo è quello che ho modificato, ma il mio problema più grande sta nel fatto che non ho idea di cosa devo scrivere nell'attributo href dell'elemento a!

oltretutto mi continua a dare errore sulla riga con session_start();

codice:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at f:\programmi\apache group\apache\htdocs\spes\index_.php:7) in f:\programmi\apache group\apache\htdocs\spes\index_.php on line 14

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at f:\programmi\apache group\apache\htdocs\spes\index_.php:7) in f:\programmi\apache group\apache\htdocs\spes\index_.php on line 14