Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/02/2004, 06:35
Avatar de wesse
wesse
 
Fecha de Ingreso: junio-2003
Ubicación: España
Mensajes: 577
Antigüedad: 20 años, 10 meses
Puntos: 1
Formulario erroneo

Tengo un archivo php con este contenido:

<html>
<head>
<title>Formulario</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#666666">
<?

if (($nombre) && ($mail) && ($asunto) && ($mensaje) && ($submit)) {

$tuemail = "[email protected]";

mail($tuemail,$asunto,$mensaje,"From: $mailrnReply-To: $mailrn" ) ;

echo "<b>E-Mail enviado con éxito</b><br>";

}


?>
<form method="post" action="email.php">
<font size="2">Tu nombre:
<input type="text" name="nombre">
<br>
Tu email:
<input type="text" name="mail">
<br>
Asunto:
<input type="text" name="asunto">
<br>
Mensaje:
<input type="text" name="mensaje">
<br>
</font>
<input type="submit" value="Enviar" name="submit">
</form>
</body>
</html>


- El caso es que al recibirlo me pone como emisor, esto: "-To:"@uk-web-3.m2kcore.com . No me sale ni el nombre ni la dirección que previamente se ha introducido.
¿Dónde está el fallo?

- ¿Cómo puedo hacer para quitar la casilla de "asunto" y poder poner yo mismo el asunto que quiera, sin que se pueda modificar?

Soy un poco negao con el PHP asi que con calma porfavor

Última edición por wesse; 18/12/2007 a las 06:02