VALUES ('".ucfirst(.$_POST['nome'])."',

c'è un punto di troppo

VALUES ('".ucfirst($_POST['nome'])."',

Prova