Ver Mensaje Individual
  #7 (permalink)  
Antiguo 04/01/2012, 06:37
beatrizaparicio
 
Fecha de Ingreso: enero-2012
Mensajes: 5
Antigüedad: 12 años, 4 meses
Puntos: 0
Respuesta: problemas con mi php

Cita:
Iniciado por Eleazan Ver Mensaje
Lee esto:
Ok, he modificado el codigo, pero sigue llegando mal.

<?php
if(isset($_POST["nombre"]) && isset($_POST["empresa"]) && isset($_POST["ciudad"]) && isset($_POST["email"])){

$mymail = "mi correo";

$contenido = " nombre : ".$_POST["nombre"]."/n";

$contenido = " empresa : ".$_POST["empresa"]."/n";

$header = "From:".$_POST["email"]."\nReply-To:".$_POST["email"]."\n";
$header .= "X-Mailer:PHP/".phpversion()."\n";
$header .= "Mime-Version: 1.0\n";
$header .= "Content-Type: text/plain";

$contenido = " ciudad : ".$_POST["ciudad"]."/n";

$contenido = " email : ".$_POST["email"]."/n";
$asunto= "prueba formulario";

if(mail($mymail, $asunto, utf8_decode($contenido) ,$header))

echo "el envio se ha hecho correctamente";
}else{
echo "el envio se ha enviado mal";
}
?>

<html>
<head>

<title>Untitled Document</title>
</head>

<body>
<form action="send.php" method="post" name="formulario"><br>
<input type="text" name="nombre" size="20" />nombre<br>
<input type="text" name="empresa" size="20" />empresa<br>
<input type="text" name="ciudad" size="20" />ciudad<br>
<input type="text" name="email" si20 />email<br>
<input type="submit" value="enviar" name=""><br>
</form>
</body>
</html>