Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/02/2010, 01:59
gazaposa
 
Fecha de Ingreso: noviembre-2009
Mensajes: 209
Antigüedad: 14 años, 5 meses
Puntos: 0
no me envia el formulario, alguien me puede ayudar??

buenas a tod@s.
he creado un formulario para que me lleguen los datos introducidos a mi correo, pero no funciona y tampoco da ningún error.
a ver si me podeis ayuudar, muchas gracias.
<body bgcolor="#0061AF">
<?php
echo "hla";

if (! $_POST ){
?>

<div id="Layer1" style="position:absolute; left:28px; top:14px; width:261px; height:346px; z-index:1">
<form action="envia_form_php.php" method=post>
<table width="98%" height="103" border="0" cellpadding="3">
<tr>
<td height="66" colspan="6">
<div align="center"><strong>FORMULARIO DE INSCRIPCI&Oacute;N</strong></div></td>
</tr>
<tr>
<td width="7%" height="31" valign="top">Nombre:</td>
<td width="23%">
<input type="text" name="nombre" size="25">
</td>
<td width="8%" valign="top">Apellidos:</td>
<td width="37%">
<input type="text" name="apellidos" size="35">
</td>
<td width="4%" valign="top">DNI:</td>
<td width="21%">
<input type="text" name="dni" size="21" align="right" alt="center">
</td>
</tr>
</table>
<table width="259%" border="0" cellpadding="3">
<tr>
<td width="9%" height="29" valign="top">Direcci&oacute;n:</td>
<td width="29%">
<input type="text" name="direccion"size="35" >
</td>
<td width="7%" valign="top">Tel&eacute;fono:</td>
<td width="22%">
<input type="text" name="textfield5" size="20">
</td>
<td width="6%" valign="top">Email:</td>
<td width="27%">
<input type="text" name="textfield6" >
</td>
</tr>
</table>
<table width="261%" border="0" cellpadding="3">
<tr>
<td width="23%" valign="top">Organismo/Universidad:</td>
<td width="29%">
<input type="text" name="organismo" size="30">
</td>
<td width="32%" valign="top">Tipo de participaci&oacute;n:</td>
<td width="16%">
<select name="participacion" size="1" >
<option>Comunicaci&oacute;n </option>
<option>P&oacute;ster </option>
<option>Oyente </option>
</select>
</td>
</tr>
</table>
<table width="170%" border="0" cellpadding="3">
<tr>
<td width="7%" valign="top">T&iacute;tulo:</td>
<td width="17%">
<input type="text" name="titulo" size="50">
</td>
<td width="30%" valign="top">Autores:</td>
<td width="46%">
<input type="text" name="autor" size="40">
</td>
</tr>
</table>
<table width="254%" border="0" cellpadding="3">
<tr>
<td width="23%" valign="top">Sesi&oacute;n Tem&aacute;tica:</td>
<td width="50%">
<input type="text" name="sesion" size="50">
</td>
<td width="7%" valign="top">Cuota:</td>
<td width="20%">
<input type="text" name="cuota" size="20">
</td>
</tr>
</table>
<div id="Layer2" style="position:absolute; left:340px; top:336px; width:104px; height:43px; z-index:2">
<input type="submit" name="Submit" value="Enviar">
</div>

<?php
}else{
//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo = "Formulario enviado\n";
$cuerpo .= "Nombre: " . $_POST ["nombre"] . "\n";
$cuerpo .= "Apellidos: " . $_POST ["apellidos"] . "\n";
$cuerpo .= "DNI: " . $_POST ["dni"] . "\n";
$cuerpo .= "Dirección: " . $_POST ["direccion"] . "\n";
$cuerpo .= "Teléfono: " . $_POST ["telefono"] . "\n";
$cuerpo .= "Email: " . $_POST ["email"] . "\n";
$cuerpo .= "Organismo/Universidad: " . $_POST ["organismo"] . "\n";
$cuerpo .= "Participación: " . $_POST ["participacion"] . "\n";
$cuerpo .= "Título: " . $_POST ["titulo"] . "\n";
$cuerpo .= "Autores: " . $_POST["autor"] . "\n";
$cuerpo .= "Sesión: " . $_POST ["sesion"] . "\n";
$cuerpo .= "Cuota: " . $_POST ["cuota"] . "\n";

mail("[email protected]","Formulario recibido",$cuerpo);

echo "Gracias por rellenar el formulario. Se ha enviado correctamente.";
}
?>


</form>

</div>
</body>


muchas gracias