Ver Mensaje Individual
  #15 (permalink)  
Antiguo 17/02/2012, 02:14
Arraymoon
 
Fecha de Ingreso: febrero-2012
Mensajes: 49
Antigüedad: 12 años, 3 meses
Puntos: 3
Respuesta: Enviar adjunto en formulario

ESTE ES EL FORMULARIO CREADO EN HTML, en el mensaje anterior te deje el php que procesa la información y envía el mail. FIjate que aqui en la etiqueta form tengo puesto ACTION=RECOGER_FORM1.PHP, eso quiere decir que el proceso php lo hago en ese archivo, si lo que quieres es hacer todo en el mismo quitale el action y pon el php y html en el mismo archivo. :) más no te puedo ayudar pq estoy pez con php aún XD
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" href="http://www.soloiconos.net/archivos/profesiones/29.gif" type="image/png">
<title> Formulario </title>
</head>
<body>

<!-- FORMULARIO -->
<form id="formulario" name="formulario" onsubmit="return validar()" method="post" action="recoger_form1.php" enctype="multipart/form-data">
<h4>FORMULARIO DE ENVÍO DE EMAIL</h4>
<label for="nombre"> Nombre &nbsp;&nbsp;&nbsp;</label>
<input id="nombre" type="text" name="nombre" size="15" id="nombre"/>
<br>
<label for="apellidos"> Apellidos &nbsp;</label>
<input id="apellidos" type="text" name="apellidos" size="15" id="apellidos"/>
<br>
<label for="email"> @Email &nbsp;&nbsp;&nbsp;&nbsp;</label>
<input id="email" type="text" name="email" size="15" id="email"/>
<br>
------------------------------------------------------
<br>
<label for="sexo">Sexo</label>
<br>
<input type="radio" name="sexo" value="hombre" checked="checked">Hombre
<br>
<input type="radio" name="sexo" value="mujer">Mujer
<br>
<br>
<label for="edad">Edad</label>&nbsp;
<select id="edad" name="edad">
<?php
for ($i=1;$i<100;$i++)
{
echo "<option>$i</option>";
}
?>
</select>
<br>
------------------------------------------------------
<br>
<label for="adjunto">Adjuntar imagen</label><br>
<input type="file" name="adjunto" size=10/>
<br>
------------------------------------------------------
<br>
Quiero Recibir Notificaciones <input type="checkbox" name="notificacion" value=" Acepto recibir notificaciones"/>
<br>
------------------------------------------------------
<br>
<input type="submit" value="Enviar FORM"> &nbsp;&nbsp;||&nbsp;&nbsp;
<input type="reset" value="Limpiar FORM"/>
<br>
------------------------------------------------------
<!-- FIN DEL FORMULARIO -->
</form>
</body>
</html>