Codice PHP:
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO contatti (ragione_sociale, riferimento, provincia, indirizzo, cap, citta, tipologia_contatto_1, telefono, fax, email, sito_internet, referente, telefono_referente, cellulare_referente, email_referente, note, banca, nazione, cin, abi, cab, conto_corrente) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)", GetSQLValueString($_POST['ragione_sociale'], "text"), GetSQLValueString($_POST['riferimento'], "text"), GetSQLValueString($_POST['provincia'], "text"), GetSQLValueString($_POST['indirizzo'], "text"), GetSQLValueString($_POST['cap'], "text"), GetSQLValueString($_POST['citta'], "text"), GetSQLValueString($_POST['tipologia_contatto_1'], "text"), GetSQLValueString($_POST['telefono'], "text"), GetSQLValueString($_POST['fax'], "text"), GetSQLValueString($_POST['email'], "text"), GetSQLValueString($_POST['sito_internet'], "text"), GetSQLValueString($_POST['referente'], "text"), GetSQLValueString($_POST['telefono_referente'], "text"), GetSQLValueString($_POST['cellulare_referente'], "text"), GetSQLValueString($_POST['email_referente'], "text"), GetSQLValueString($_POST['note'], "text"), GetSQLValueString($_POST['banca'], "text"), GetSQLValueString($_POST['nazione'], "text"), GetSQLValueString($_POST['cin'], "text"), GetSQLValueString($_POST['abi'], "text"), GetSQLValueString($_POST['cab'], "text"), GetSQLValueString($_POST['conto_corrente'], "text"));