Usa i doppi apici nel modo corretto

Codice PHP:
echo "<input type=\"text\" name=\"$varNome\" value=\"$var\">"