/var/www/clients/client1/web2/web/latynflexOLD
Edit: /var/www/clients/client1/web2/web/latynflexOLD/graba_contacto.php (2059B)
";
$cabeceras .= "\n";
$html='
Documento sin título
| Nombre |
'.$_POST['data']['nombre'].' |
| Apellido |
'.$_POST['data']['apellido'].' |
| Telefono |
'.$_POST['data']['telefono'].' |
| Email |
'.$_POST['data']['email'].' |
| Mensaje |
'.$_POST['data']['mensaje'].' |
';
//mail( "emauri@gmail.com", "Contacto", $html, $cabeceras );
mail( "jmrodas@latyn.net", "Contacto", $html, $cabeceras );
if ((isset($_POST['data']['nombre'])) && ($_POST['data']['nombre'] != "")) {
echo $insertSQL = sprintf("INSERT INTO contactos (tipo, fecha, nombre, apellido, telefono, email, mensaje) VALUES (%s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['data']['tipo'], "text"),
GetSQLValueString(date('Y-m-d'), "date"),
GetSQLValueString($_POST['data']['nombre'], "text"),
GetSQLValueString($_POST['data']['apellido'], "text"),
GetSQLValueString($_POST['data']['telefono'], "text"),
GetSQLValueString($_POST['data']['email'], "text"),
GetSQLValueString($_POST['data']['mensaje'], "text"));
$Result1 = mysqli_query($latyn, $insertSQL) or die(mysqli_error());
}
}
?>