Soy nuevo con php.Agredeceria si me puede alguien ayudar
Tengo un formulario que funciona correctamente.
O sea el mail es enviado.
Pero solo recibo Los items:
Nombre
Apellido
Correo
El Item Telefono no lo recibo.
Mi problema es que no se como incorporar un nuevo
item, ejemplo: telefono, domicilio, comentarios o lo que sea.
La base funciona
<html>
<head>
<title> Formulario </title>
</head>
<body>
<form method="POST" action="http://www.direccion.com.ar/prueba.php">
Nombre: <input type="text" name="nom">
<br><br>
Apellido :
<input type="text" name="ape">
<br><br>
Correo :
<input type="text" name="cor">
<br><br>
Telefono :
<input type="text" name="tel"
<br>
<br>
<input type="Submit" value="Enviar mail">
</form>
</body>
</html>
____________________________________
Y el archivo php es:
<html>
<head>
</head>
<body>
<div align="center">
<p>Gracias</p>
<p>por contactarse</p>
<p>con nosotros
<?
$n=$_POST['nom'];
$a=$_POST['ape'];
$c=$_POST['cor'];
$e=$_POST['tel'];
$para="[email protected]";
$asunto="formulario Web";
$cpo.="nombre".$n."\r\n";
$cpo.="apellido".$a."\r\n";
$cpo.="correo".$c."\r\n";
$cpo.="telefono".$e."\r\n";
mail($para,$asunto,$cpo);
?>
</p>
</div>
</body>
</html>
Muchas Gracias
Carlos