Contactanos
Ingresa una direcion de correo valida.'; } if (isset($_POST['contact_submitted'])) { $return = "\r"; $youremail = trim(htmlspecialchars($_POST['your_email'])); $yourname = stripslashes(strip_tags($_POST['your_name'])); $yourtelefono = stripslashes(strip_tags($_POST['your_telefono'])); $yourmessage = stripslashes(strip_tags($_POST['your_message'])); $contact_name = "Nombre: ".$yourname; $contact_telefono="telefono: ".$yourtelefono; $message_text = "Mensaje: ".$yourmessage; $user_answer = trim(htmlspecialchars($_POST['user_answer'])); $answer = trim(htmlspecialchars($_POST['answer'])); $message = $contact_name.$contact_telefono. $return . $message_text; $headers = "de: ".$youremail; if (email_is_valid($youremail) && !eregi("\r",$youremail) && !eregi("\n",$youremail) && $yourname != "" && $yourmessage != "" && substr(md5($user_answer),5,10) === $answer) { mail($to,$subject,$message,$headers); $yourname = ''; $yourtelefono = ''; $youremail = ''; $yourmessage = ''; echo ''.$contact_submitted.'
'; } else echo 'Por favor ingresa los datos que a continuacion se piden.
'; } $number_1 = rand(1, 9); $number_2 = rand(1, 9); $answer = substr(md5($number_1+$number_2),5,10); ?>