| Server IP : 89.248.107.232 / Your IP : 216.73.217.70 Web Server : Apache System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64 User : seg ( 10005) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/seg-sa.es/gessing.es/wp-content/themes/advtheme/php/ |
Upload File : |
<?php
include 'conect.php';
$nombre = utf8_decode($_POST['nombre']);
$email = utf8_decode($_POST['email']);
$ciudad = utf8_decode($_POST['ciudad']);
$mensaje = utf8_decode($_POST['mensaje']);
mysqli_query($con, "INSERT INTO `contacto`(`nombre`, `email`, `telefono`, `ciudad`, `comentario`, `url`) VALUES ("
. "'{$nombre}', '{$email}', '{$_POST['telefono']}', '{$ciudad}', '{$mensaje}', '{$_POST['url']}')");
mysqli_connect_error();
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=UTF-8\r\n";
$headers .= "From: gessing.es <web@gessing.es>\r\n";
$mail = "gessing@gessing.es";
$asunto = 'Solicitud de contacto';
$mensaje = '<html><head><title>Solicitud de contacto</title><meta charset="UTF-8">
<meta name="viewport" content="width=device-width"></head><body>
<p>Ha recibido la siguiente solicitud de contacto:</p>
<p><strong>Nombre: </strong>'.$_POST['nombre'].'</p>
<p><strong>Email: </strong>'.$_POST['email'].'</p>
<p><strong>Teléfono: </strong>'.$_POST['telefono'].'</p>
<p><strong>Ciudad: </strong>'.$_POST['ciudad'].'</p>
<p><strong>Mensaje: </strong><br/>'.$_POST['mensaje'].'</p>
<p><strong>URL: </strong><br/>'.$_POST['url'].'</p>
<p><strong>Política de privacidad: </strong>'.$_POST['politica'].'</p>
</body></html> ';
if(mail($mail,$asunto,$mensaje,$headers)){
$resultado="";
}
header('Location: '.$_POST['url']);
$mysqli->close();
?>