Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/11/2007, 01:26
Avatar de Michael_Jival
Michael_Jival
 
Fecha de Ingreso: noviembre-2007
Mensajes: 28
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: Problema envio formulario

HOLA, USA ESTE CODIGO, TIENES VARIOS ERRORES EN ESE CODIGO PARA NO DECIR DEMASIADOS :S POR EJEMPLO ESAS COMILLAS QUE NO SE DE DONDE LAS SACASTE “From: “.$nombre .”< ".$correo.">“

ESTE CODIGO QUE TE PONGO FUNCIONA A LA PERFECION USALO Y MODIFICALO A TU GUSTO.

BENDICIONES..

Código PHP:
<?php
    $nombre 
$_POST["nombre"];
    
$dir $_POST ["direccion"];
    
$tel $_POST ["telefono"];
    
$comp $_POST ['txtCompania'];
    
$correo $_POST['txtCorreo'];
    
$art $_POST['art'];
    
$msj $_POST['txtMsj'];
    
$cont $_POST ['opc1'];
    
    
$asunto "Comentario página";


    
    
$enviarformulario mail("TU CORREO""infomacion",
"infomacion

      nombre: $nombre
      Direccion: $dir
      Telefono: $tel
      Compañia: $comp
      E-mail: $correo
      Articulo: $art
      Contacta: $cont
      mensaje: $msj"
);
    
    
    echo 
"Gracias por tu mensaje"
    
?>
    
<img src="banner.jpg">
</body>
</html>