Comunidad de diseño web y desarrollo en internet online

Problema con envio de info en formulario de contacto

Citar            
MensajeEscrito el 25 May 2008 10:20 pm
hola gente de cristalab, creo que el titulo del tema casi lo dice todo, pero voy a explicar un poco más mi problema, tengo un formulario de contacto con el archivo php, con todo mejor dicho....pero los mensajes llegan de la siguiente forma:

De: Nobody [mailto:[email protected]] En nombre de> [email protected]> Enviado el: Jueves, 15 de Mayo de 2008 08:11 p.m.> Para: [email protected]> Asunto: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT > FACE=\"Helvetica\"> SIZE=\"10\" COLOR=\"#373535\" LETTERSPACING=\"0\" KERNING=\"0\">Solicitud> catálogo y lista de precios</FONT></P></TEXTFORMAT>> Importancia: Alta>> Nombre del autor:> <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\"> SIZE=\"10\" COLOR=\"#373535\" LETTERSPACING=\"0\" KERNING=\"0\">ANDREA> SALAZAR CHAVES</FONT></P></TEXTFORMAT>> Su email:> <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\"> SIZE=\"10\" COLOR=\"#373535\" LETTERSPACING=\"0\"> KERNING=\"0\">[email protected]</FONT></P></TEXTFORMAT>> Su empresa:>> Motivo del contacto:> <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\"> SIZE=\"10\" COLOR=\"#373535\" LETTERSPACING=\"0\" KERNING=\"0\">Solicitud> catálogo y lista de precios</FONT></P></TEXTFORMAT>> Mensaje:> <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\"> SIZE=\"10\" COLOR=\"#373535\" LETTERSPACING=\"0\"> KERNING=\"0\">SEÑORES:</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P> ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\" COLOR=\"#373535\"> LETTERSPACING=\"0\" KERNING=\"0\">ROYTER> LTDA.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P> ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\" COLOR=\"#373535\"> LETTERSPACING=\"0\" KERNING=\"0\">BOGOTÁ> D.C.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P> ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\" COLOR=\"#373535\"> LETTERSPACING=\"0\" KERNING=\"0\"></FONT></P></TEXTFORMAT><TEXTFORMAT> LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\"> COLOR=\"#373535\" LETTERSPACING=\"0\" KERNING=\"0\">CORDIAL> SALUDO.</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P> ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\" COLOR=\"#373535\"> LETTERSPACING=\"0\" KERNING=\"0\"></FONT></P></TEXTFORMAT><TEXTFORMAT> LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\"> COLOR=\"#373535\" LETTERSPACING=\"0\" KERNING=\"0\">SOLICITO MUY> RESPETUOSAMENTE, NOS ENVÍEN EL CATÁLOGO DE PRODUCTOS Y SU RESPECTIVA LISTA> DE PRECIOS PARA NUEVA TEMPORADA.</FONT></P></TEXTFORMAT><TEXTFORMAT> LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\"> COLOR=\"#373535\" LETTERSPACING=\"0\"> KERNING=\"0\"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P> ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\" COLOR=\"#373535\"> LETTERSPACING=\"0\" KERNING=\"0\">ATTE:</FONT></P></TEXTFORMAT><TEXTFORMAT> LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\"> COLOR=\"#373535\" LETTERSPACING=\"0\"> KERNING=\"0\"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P> ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\" COLOR=\"#373535\"> LETTERSPACING=\"0\" KERNING=\"0\">ANDREA SALAZAR> CHAVES</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P> ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\" COLOR=\"#373535\"> LETTERSPACING=\"0\"> KERNING=\"0\">ADMINISTRADORA</FONT></P></TEXTFORMAT><TEXTFORMAT> LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\"> COLOR=\"#373535\" LETTERSPACING=\"0\" KERNING=\"0\">LIBRERÍA Y PAPELERÍA> CASE</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P> ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\" COLOR=\"#373535\"> LETTERSPACING=\"0\" KERNING=\"0\"></FONT></P></TEXTFORMAT><TEXTFORMAT> LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\"> COLOR=\"#373535\" LETTERSPACING=\"0\" KERNING=\"0\">CRA 27 # 17 - 81> CENTRO</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P> ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\" COLOR=\"#373535\"> LETTERSPACING=\"0\" KERNING=\"0\">PASTO -> NARIÑO</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P> ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\" COLOR=\"#373535\"> LETTERSPACING=\"0\" KERNING=\"0\">TEL 7230676 - CEL: 300 608> 0673</FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P> ALIGN=\"LEFT\"><FONT FACE=\"Helvetica\" SIZE=\"10\" COLOR=\"#373535\"> LETTERSPACING=\"0\" KERNING=\"0\"></FONT></P></TEXTFORMAT>

como pueden ver, el mensaje llega, la información llega, pero llega con las especificaciones escritas como el tipo de letra el formato, etc...la verdad he probado volviendolo y volviendolo a hacer pero siempre ocurre lo mismo y no se como arreglar el problema, por eso acudo a ustedes...si me pudieran ayudar como siempre estare muy agradecido con ustedes...

Saludos y buena suerte a todos...

Gracias de antemano

Por maooricio

51 de clabLevel



Genero:Masculino  

msie7
Citar            
MensajeEscrito el 25 May 2008 11:23 pm
Al parecer tienes dos problemas (que puede ser sólo uno). Parece que te saltaste el parámetro "asunto", por lo que realmente estás metiendo todo el mensaje en el asunto, Mira la especificación de la función mail en php. Recuerda también que debes definir la cabecera para que lo interprete como html y no como texto plano (lo verás en los comentarios que están en la página que te indiqué arriba).

Por The Fricky!

Presidente

6168 de clabLevel

3 tutoriales
8 articulos

Genero:Masculino   Bastard Operators From Hell Héroes

Piccola Venezia...

firefox
Citar            
MensajeEscrito el 28 May 2008 01:42 am
gracias the fricky por tu respuesta, voy a mirar la pagina y a corregir el problema haber si me funciona....depronto voy a solicitar de nuevo tu ayuda por si no sirve, pero es bueno recibir respuestas siempre a algo que no se sabe hacer, muchas gracias hermano

Por maooricio

51 de clabLevel



Genero:Masculino  

msie7
Citar            
MensajeEscrito el 16 Abr 2011 04:17 pm
Hola! Yo tengo un problema similar: al enviar el formulario llega correctamente pero con las etiquetas html

Nombre: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"HelveticaNeueLT Std\" SIZE=\"13\" COLOR=\"#CC6600\" LETTERSPACING=\"0\" KERNING=\"0\">agui</FONT></P></TEXTFORMAT> Teléfono: <p align=\"left\"></p> Email: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"HelveticaNeueLT Std\" SIZE=\"13\" COLOR=\"#CC6600\" LETTERSPACING=\"0\" KERNING=\"0\">[email protected]</FONT></P></TEXTFORMAT> Mensaje: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"HelveticaNeueLT Std\" SIZE=\"13\" COLOR=\"#CC6600\" LETTERSPACING=\"0\" KERNING=\"0\">preuba</FONT></P></TEXTFORMAT>

Ya me probé activando/desactivando la opción <> (generar texto como html) como sugerían en algunos posts pero es indistinto, sigue llegando igual.
Tambien probe modificando algunasvariables del php pero no habia ningun cambio. Ya no se que mas tratar. Lei todos los temas que hablaban de esto pero no logre solucionar mi problema.
Alguien me puede ayudar???

El codigo en el flash es el siguiente.
Primer frame:

Código ActionScript :

miTexto.html = false;

send_button.onRelease = submit;
reset_button.onRelease = reset;
function submit()
{
   if( contact_name.text == "" || contact_email.text == "" || contact_message.text == "")
   {
      message_status.text = "Hay campos obligatorios sin rellenar.";
   }
   else if( contact_email.text.indexOf('@') < 2 || contact_email.text.indexOf('.') < 0 )
   {
      message_status.text = "Ingrese una dirección de correo electrónico válida";
   }
   else if( contact_message.text == "")
   {
      message_status.text = "Sus comentarios son importantes";
   }
   else
   {
      message_status.text = "";
      gotoAndStop("send");
   }
}
function reset()
{
   contact_name.text = contact_email.text = contact_telephone.text = 
   contact_message.text = message_status.text = "";
   clearInterval(interval_id);
   gotoAndStop("stop");
}


Frame 5

Código ActionScript :

stop();


Frame 11

Código ActionScript :

stop();
loadVariables("send_email.php?flashmo=" + random(1000), this, "POST");
message_status.text = "Enviando...";
var i = 0;
function check_status()
{
   if( success == "yes" )
   {
      message_status.text = "Su mensaje ha sido enviado con éxito";
      play();
   }
   else if( success == "no" )
   {
      message_status.text = "Su mensaje no pudo ser enviado. Intente otra vez.";
      gotoAndStop("stop");;
   }
   if( i >= 20 )
      clearInterval(interval_id);
   i++;
}
var interval_id = setInterval(check_status, 400);


Frame 70

Código ActionScript :

reset();
gotoAndStop("stop");
clearInterval(interval_id);


Y tengo dos botones uno con nomre de instancia reset_button y el otro send_button

Por ultimo este es el codigo PHP

Código PHP :

<?php
$contact_name = $_POST['name'];
$contact_email = $_POST['email'];
$contact_telephone = $_POST['telephone'];
$contact_message = $_POST['message'];

if( $contact_name == true )
{
   $sender = $contact_email;
   $receiver = "[email protected]";
   $client_ip = $_SERVER['REMOTE_ADDR'];
   $email_body = "Nombre: $contact_name 
   Teléfono: $contact_telephone 
   Email: $sender 
   Mensaje: $contact_message
   IP: $client_ip";
         
   
   if( mail( $receiver, "Contacto desde web Luis Torralva - $subject", $email_body ) ) 
   {
      echo "success=yes";
   }
   else
   {
      echo "success=no";
   }
}
?>

Por ERICASOSA

10 de clabLevel



 

msie8
Citar            
MensajeEscrito el 19 Abr 2011 02:09 pm
TE TENGO LA SOLUCION
1) este es el codigo php que yo uso lo guardas como (contacto.php)

Código PHP :

<?PHP;
    $subj= "Contacto desde su Sitio Web";
    $encabezado="De: $nombre<$email>\n";
    $conte="Nuevo mensaje desde su Sitio Web\n";
    $conte.="Nombre: $nom\n";
   $conte.="E-mail: $email\n";
   $conte.="Telefono: $telefono\n";
   $conte.="Comentario: $mensaje\n";
   $mail="nombre del mail que quieres que valla";
    mail($mail,$subj,$conte,$encabezado);
?>


2) creas un boton con nombre de instancia (enviar_btn)

3) creas una capa y en el primer frame pones este codigo actionscript

Código ActionScript :

enviar_btn.onRelease = function() {
   if (nom == '') {
      nom = "Ingrese su nombre";
   }
   if (telefono == '') {
      telefono = "Ingrese su teléfono";

   }
   if (mensaje == '') {
      mensaje = "Ingrese su mensaje";
   }
   if (email == '') {
      email = "Ingrese su correo";

   } else {
      if (email.indexOf("@") == -1 || email.indexOf(".") == -1) {
         email = "El correo electrónico es incorrecto";
      } else {
         loadVariablesNum("contacto.php", 0, "POST");
         gotoAndPlay(5);
         respuesta = "Gracias por enviarnos tu mensaje";
      }
   }
};

Por zoneclick

19 de clabLevel



 

chrome
Citar            
MensajeEscrito el 26 Abr 2011 02:44 am
Buenisimo!Muchas gracias, me sirvio!

Por ERICASOSA

10 de clabLevel



 

msie8

 

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