PATH:
var
/
www
/
vhosts
/
lahuertaatomica.es
/
httpdocs
/
public
/
modules
/
contacto
/
Editing: contacto.php
<?php if ($_POST) { $nombre = trim(strip_tags($_POST["nombre"])); $email = trim(strip_tags($_POST["email"])); $telefono = trim(strip_tags($_POST["telefono"])); $mensaje = trim(strip_tags($_POST["mensaje"])); $legal = abs(intval($_POST["legal"])); if ($legal == 1) { if ($nombre != "" && $email != "" && $telefono != "" && $mensaje != "") { $to = "info@lahuertaatomica.es"; $subject = "E-Mail enviado desde La Huerta Atómica"; $message = '<h3>Mensaje de Contacto</h3>' . "\r\n"; $message .= '<p>El usuario ha enviado estos datos:</p>' . "\r\n"; $message .= '<ul>'; $message .= '<li><strong>NOMBRE: </strong>' . $nombre . '</li>' . "\r\n"; $message .= '<li><strong>E-MAIL: </strong>' . $email . '</li>' . "\r\n"; $message .= '<li><strong>TELÉFONO: </strong>' . $telefono . '</li>' . "\r\n"; $message .= '<li><strong>MENSAJE: </strong>' . $mensaje . '</li>' . "\r\n"; $message .= '</ul>'; $headers = 'From: info@lahuertaatomica.es' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; /*------------Enviamos el e-mail------------*/ $envio = mail($to, $subject, $message, $headers); if ($envio) { echo "<script language=Javascript>location.href=\"../../../index.php?error=1#contact\";</script>"; } else { echo "<script language=Javascript>location.href=\"../../../index.php?error=2#contact\";</script>"; } } else { echo "<script language=Javascript>location.href=\"../../../index.php?error=3#contact\";</script>"; } } else { echo "<script language=Javascript>location.href=\"../../../index.php?error=4#contact\";</script>"; } } ?>
SAVE
CANCEL