![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
12/03/2011, 10:34
|
![Avatar de xarmagedonx](http://static.forosdelweb.com/customavatars/avatar290693_1.gif) | | | Fecha de Ingreso: marzo-2009
Mensajes: 360
Antigüedad: 15 años, 11 meses Puntos: 29 | |
Respuesta: Duda con formulario (Ayuda!) Formulario.html Cita: <table width="343" border="0"> <tr> <td><form name="form1" method="post" action="http://miweb.subdominio.com/enviar.php">
<table width="338" border="0">
<tr>
<td>Url:</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>Descripción:</td>
<td><textarea name="msg" id="msg"></textarea></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Añadir"></td>
<td> </td>
</tr>
</table>
</form></td>
</tr> </table> Enviar.php: Cita: <?php
$mail=' [email protected]';
$nombre = $_POST['nombre'];
$email = $_POST['email'];
$msg = $_POST['msg'];
$thank="http://www.miweb.com.ar/";
$message = "
nombre:".$nombre."
email:".$email."
msg:".$msg."";
if (mail($mail,"consulta",$message))
Header ("Location: $thank");
?> |