input type hidden è il metodo giusto...
magari sbagli nel name all'input