Foros del Web » Programando para Internet » PHP »

formulario de flash para ser recibido en correo electrónico

Estas en el tema de formulario de flash para ser recibido en correo electrónico en el foro de PHP en Foros del Web. Hola a todos.... Estoy haciendo un formulario flash.... lo copié de algún sitio. El hecho es que tengo el flash y el .php y no ...
  #1 (permalink)  
Antiguo 17/05/2005, 02:07
Avatar de phivian  
Fecha de Ingreso: marzo-2005
Mensajes: 132
Antigüedad: 19 años, 1 mes
Puntos: 0
formulario de flash para ser recibido en correo electrónico

Hola a todos....

Estoy haciendo un formulario flash.... lo copié de algún sitio. El hecho es que tengo el flash y el .php y no recibo los correos (no están bloqueados los php).

el el flash pone lo siguiente

stop();
cgilocation = "../shformml.php";

Si quereis ver el formulario, accedan al apartado "RESERVAS" del siguiente enlace: http://www.garaldea.com/chimisay2/esp/index.html

ahora les voy a pegar el código de shformml.php, es este:

<?
################################################## ##########################
# Installation
################################################## ##########################
# -flash movie
# 1.set the variable "cgilocation" at frame 1 to identify the location of
# this script on your server if you can.
# 2.if you are not able to edit the flash movie, use following html script.
# You should replace both [value = "http://..."] and [src = "http://.."] with
# the location of swf file on your server.
#
# <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
# codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"
# width="260" height="200" align="middle">
# <param name=movie value="http://your_domain/shflashform.swf?cgilocation=http://your_domin/shformml.php">
# <param name=quality value=high>
# <param name=SCALE value=noborder>
# <embed src="http://your_domain/shflashform.swf?cgilocation=http://your_domin/shformml.php"
# quality=high
# pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"
# width="260" height="200" scale="noborder" align="middle">
# </embed>
# </object>
#
# -cgi file
#
# $SENDMAIL identifies the location of the send mail program on
# your server. Verify this with your webmaster or isp.
# @auth_domain identifies the URL's that are authorized to use this
# CGI Script. if you don't care of it or want to disable it,
# simply comment &authorize or delete &authorize
# you can have more than 1 auth_domains. Separate them with ",";
# $to modify it to your email address or the email where the form data will be sent.
# $subject the subject of the email.
################################################## #####################

$auth_domain = array("garaldea.com.com");
$to = "[email protected]";
$subject = "Reserva desde garaldea.com";

if (isset($HTTP_REFERER)) {
foreach ($auth_domain as $line) {
if (eregi($line,$HTTP_REFERER)) {
$check_url = 1;
continue;
}
}
}else{
$check_url = 1;
}
if ($check_url != 1) {
echo "error=this formmail is not allowed in your domain";
exit;
}


$date = getdate(time());
$date = sprintf("%s %s %s %s:%s:%s", $date["mday"],$date["month"],$date["year"],$date["hours"],$date["minutes"],$date["seconds"]);
$from = "[email protected]";
#$from = "$name<$email> ";
$header = "From:$from\n";
$header .= "To:$to\n";
$header .= "Reply-To:$from\n";

$body = "Fecha del contacto: $date\n\n";
$body .= "---------------------------------------------------------------\n\n";
$body .= "Fecha de llegada: $fecha1\n";
$body .= "Fecha de salida: $fecha2\n";
$body .= "Tipo de habitación: $habitacion\n";
$body .= "Número de habitaciones: $habitaciones\n";
$body .= "Número de adultos: $adultos\n";
$body .= "Número de niños(2-12): $ninos\n";
$body .= "Número de bebés(0-23m): $bebes\n";
$body .= "Régimen Alimenticio: $regimen\n";
$body .= "Comentarios: $comentarios\n\n";
$body .= "Persona de contacto: $apellidos, $nombre\n";
$body .= "Teléfono: $telefono\n";
$body .= "Fax: $fax\n";
$body .= "E-mail: $email\n";
$body .= "---------------------------------------------------------------\n\n";

$header=trim($header);
mail($to, $subject, $body, $header) or die("error=failed to send the email");
echo "&error=sent the email successfully";




GRACIAS DE ANTEMANO POR TODA LA AYUDA QUE ME PODAIS DAR
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 19:45.