Comunidad de diseño web y desarrollo en internet online

formulario de contacto en flash

Citar            
MensajeEscrito el 07 May 2009 10:20 pm
buenas, estoy realizando un sitio completamente desde flash y me encuentro con un problema relativo al envío de mensajes a través de un formulario de contacto. El punto es que los mensajes son recibidos en mi casilla de gmail pero aparecen vacíos, ilustrado de esta forma .


MENSAJE:
EMAIL:


A continuación el código utilizado:

EN EL ARCHIVO PHP

Código :

<?
$name = $_POST['your_name'];
$name = str_replace('&777&Your Name:','',$name);
$tel = $_POST['telephone'];
$tel = str_replace('&777&Telephone:','',$tel);
$nachricht = $_POST['message'];
$nachricht = str_replace('&777&Your Message:','',$nachricht);
$email = $_POST['your_email'];
$email = str_replace('&777&E-mail Address:','',$email);
$empfaenger ='[email protected]';
$subject = 'Kontaktmail';
$mailout = '<html>
<head>
<title>Kontakt Mail</title>
</head>
<body>
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" colspan="2"><h3>Neue Kontaktnachricht</h3></td>
</tr>
<tr>
<td><b>Nachricht von:</b></td><td>'.$name.'</td>
</tr>
<tr>
<td><b>Emailadresse:</b></td><td><a href="mailto:'.$email.'?subject=Ihre%20Kontaktanfrage">'.$email.'</a></td>
</tr>
<tr>
<td><b>Telefonnummer:</b></td><td>'.$tel.'</td>
</tr>
<tr>
<td colspan="2"><hr></td>
</tr>

<tr>
<td colspan="2">'.$nachricht.'</td>
</tr>

</table>
</body>
</html>
';
$headers .= 'X-Mailer: PHP/' . phpversion() . "\n";
$headers .= 'X-Sender-IP: ' . $REMOTE_ADDR . "\n";
$headers .= "Content-type: text/html\n";
$sende = @mail($empfaenger, $subject, $mailout, $headers);
if($sende) {
echo 'Ihre Kontaktanfrage wurde erfolgreich an uns &uuml;bermittelt.<br>Wir setzen uns in k&uuml;rze mit Ihnen in Verbindung.';
} else {
echo 'Leider tauchte ein Fehler mit dem Senden Ihrer Kontaktanfrage auf.';
}
?>



EN EL FOTOGRAMA DE FLASH:

Código :

rec="[email protected]";
serv="php";

var fields_descriptions= Array ("", 
                           Array("t1", "your_name", "Your Name:"), 
                           Array("t2", "your_email", "Your Email:"),
                           Array("t3", "telephone", "Telephone:"),
                           Array("t4", "message", "Message:"),
                           Array("t5", "field_2", "E-mail:"),
                           Array("t6", "field_3", "Address:"),
                           Array("t7", "field_4", "fax:")
                        );



for (i=1; i<=fields_descriptions.length; i++) {
   this["k"+i].text=fields_descriptions[i][2];
}



EN EL BOTON DE ENVÍO :

Código :

on (rollOver) {
   this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
   this.gotoAndPlay("s2");
}



on (release) {
   for (i=1; i<_parent.fields_descriptions.length; i++) {
      if (_parent[_parent.fields_descriptions[i][1]]!=undefined) {
         this[_parent.fields_descriptions[i][1]]=_parent[_parent.fields_descriptions[i][1]]+"&777&"+_parent.fields_descriptions[i][2];
      }
      
   }

   this.recipient=_parent.rec;
   i=undefined;
   getURL("contact.", "_blank", "POST");
}



Gracias de antemano.

Por incubo

53 de clabLevel



 

firefox
Citar            
MensajeEscrito el 08 May 2009 11:20 am
Pues el script que pusiste no pone nada de mensaje ni de email, sino que te envía la ficha completa en alemán con subject Kontaktmail ... ¿estás seguro que ese es el script?

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox
Citar            
MensajeEscrito el 08 May 2009 05:14 pm
Efectivamente es el script, tanto "mensaje" e "email" aparecen en alemán pero sin el remitente correspondiente ni el mensaje en cuestión.

Por incubo

53 de clabLevel



 

firefox
Citar            
MensajeEscrito el 08 May 2009 05:44 pm
Esta expresión (en el botón de envío) es un poco rebuscada:

this[_parent.fields_descriptions[i][1]]=_parent[_parent.fields_descriptions[i][1]]+"&777&"+_parent.fields_descriptions[i][2];

Traza los valores a ver si son los correctos

Jorge

Por solisarg

BOFH

13669 de clabLevel

4 tutoriales
5 articulos

Genero:Masculino   Bastard Operators From Hell Premio_Secretos

Argentina

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.