Si esatto Usa anche htmlspecialchars, cosi:

$dati = htmlspecialchars($_POST['via']) . htmlspecialchars($_POST['numero']);