Il problema è che le variabili non sono impostate. Per questo da errore!

Miky