Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/12/2008, 12:51
Derian
 
Fecha de Ingreso: mayo-2008
Mensajes: 35
Antigüedad: 16 años
Puntos: 1
Ayuda con la funcion mail

tengo confuciones o mas bien errores que no comprendo.

Cita:
<html>
<head>
<title>Prueba Formulario</title>

</head>

<body>
<form name="form1" method="post" action="correo.php">
<table width="400" border="0" cellspacing="0">
<tr>
<td width="100">Nombre</td>
<td><input name="nombre" type="text" id="nombre"></td>
</tr>
<tr>
<td>Email</td>
<td><input name="email" type="text" id="email"></td>
</tr>
<tr>
<td>Pais</td>
<td><input name="pais" type="text" id="pais"></td>
</tr>
<tr>
<td>Asunto</td>
<td><input name="asunto" type="text" id="asunto"></td>
</tr>
<tr>
<td>Mensaje</td>
<td><textarea name="mensaje" cols="50" id="mensaje"></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" name="Submit" value="Enviar">
<input type="reset" name="Submit2" value="Borrar"></td>
</tr>
</table>
</form>
</body>
</html>
y aca el lugar a donde lo manda.

Cita:
<html>
<body>
<?php
$nom = $_REQUEST['nombre'];
$ema = $_REQUEST['email'];
$pai = $_REQUEST['pais'];
$asu = $_REQUEST['asunto'];
$men = $_REQUEST['mensaje'];
echo $nom," ",$ema," ",$pai," ",$asu," ",$men;
$para = '[email protected]';
mail($para, $asu, $nom, $men, $ema);
?>
</body>
</html>
bueno necesito que me lo mande al correo y siento que estoy cometiendo erroes pendejos olvidando cosas basica, por favor agradesco su ayuda para que me ayuden a corregir este formulario.