Forse ti conviene leggere con maggior attenzione la documentazione ufficiale in merito alle stringhe e le basi della sintassi HTML.
http://www.php.net/manual/en/language.types.string.php
Codice PHP:
<input type="hidden" name="nome" value="<?php echo htmlentitirs($nome); ?>" />