codice:
<input type="hidden" name="dati" value="<?=$nome?>">
Per integrare PHP con html, devi usare questa sintassi <?=$var?>

Ciao!