Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/11/2008, 09:36
hellodesign
 
Fecha de Ingreso: noviembre-2008
Mensajes: 3
Antigüedad: 16 años
Puntos: 0
Respuesta: Formulario para reservas

Hola Hecberto gracias por tu pronta respuesta, pero eso no es lo que necesito, dejare el código aquí a ver si puedes mirarlo y ver donde tengo el error. Gracias

Código en flash:
on (rollOver) {
gotoAndPlay("t1");

}
on (rollOut, releaseOutside) {
gotoAndPlay("t2");

}

on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
_parent.form.loadVariables("correo.php","POST");
_parent.form.nombreyapellidos = "";
_parent.form.direccion = "";
_parent.form.telefono = "";
_parent.form.email = "";
_parent.form.numero = "";
_parent.form.fecha = "";
_parent.form.espectaculo = false;
}

Código en PHP:
$sendTo = "[email protected]";
$subject = "Reserva";

// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">\r\n";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];

// now we can add the content of the message to a body variable
$message = "Nombre y apellidos:" . $_POST["nombreyapellidos"] . "\r\n";
$message .= "Direccion:" . $_POST["direccion"]. "\r\n";
$message .= "Teléfono:" . $_POST["telefono"] . "\r\n";
$message .= "E-mail:" . $_POST["email"] . "\r\n";
$message .= "Número de personas:" . $_POST["numero"] . "\r\n";
$message .= "Fecha de reserva:" . $_POST["fecha"] . "\r\n";
$message .= "Espectáculo:" . $_POST["espectaculo"] . "\r\n";

// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);

?>