$nome_file = $_POST['nomePagina'].'.html';

Ora ti basta scrivere "prova" nell'input text e ritrovarti con scritto prova.html.