Ver Mensaje Individual
  #22 (permalink)  
Antiguo 04/07/2013, 08:49
josemanuelprz24
 
Fecha de Ingreso: julio-2013
Mensajes: 1
Antigüedad: 10 años, 9 meses
Puntos: 0
Respuesta: Mandar formularios por php

Hola, mi duda es sobre un catcha en un formulario eh intentado miles de cosas y ninguna cosa me ha funcionada para validar un formulario y procesarlo medienate php con el codigo del la imagen catpcha incluida, alguien sabre como le puedo hacer?

<?php
include 'config.php';
$nombre = $_POST['nombre'];
$correo = $_POST['correo'];
$ciudad = $_POST['ciudad'];
$telefono = $_POST['telefono'];
$mensaje = $_POST['mensaje'];
$subject = "Contacto";
$UN_SALTO = "\r\n";
$message = "Nombre: ". $nombre . $UN_SALTO ."Correo: ".$correo . $UN_SALTO ."Teléfono: ".$telefono . $UN_SALTO ."Ciudad: ".$ciudad . $UN_SALTO ."Mensaje: ".$mensaje;


/*the $header variable is for the additional headers in the mail function,
we are asigning 2 values, first one is FROM and the second one is REPLY-TO.
That way when we want to reply the email gmail(or yahoo or hotmail...) will know
who are we replying to. */



if(mail($email_to, $subject, $message, $headers)){
echo 'Su Mensaje ha sido enviado con exito, Gracias Por Contactarnos'; // we are sending this text to the ajax request telling it that the mail is sent..
}else{
echo 'failed';// ... or this one to tell it that it wasn't sent
}
ese es el codi para procesar el formulario pero falta el catpcha