Dopo che l'utente ha inserito il valore fai

$convertita = str_replace(",",".",$numero);