![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/01/2006, 17:36
|
![Avatar de fright](http://static.forosdelweb.com/customavatars/avatar52061_1.gif) | | | Fecha de Ingreso: enero-2004 Ubicación: colombia, bogota
Mensajes: 88
Antigüedad: 21 años, 1 mes Puntos: 0 | |
Cita:
Iniciado por maralbust Código PHP:
if (!$HTTP_POST_VARS){
?>
</p>
<form name="enviar" action="contacto.php" method="post">
<div align="center">
<table width="58%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2"><strong>Por favor ingrese las siguiente información.</strong></td>
</tr>
<tr>
<td colspan="2"><img src="imagenes/spacer.gif" width="1" height="10"></td>
</tr>
<tr>
<td width="32%">Nombre:</td>
<td width="68%"><input type=text name="nombre" class="t_n" size=25></td>
</tr>
<tr>
<td><img src="archivos_index/spacer.gif" width="1" height="5"></td>
</tr>
<tr>
<td>Apellido:</td>
<td><input type="text" name="apellido" class="t_n" size="25"></td>
</tr>
<tr>
<td colspan="2"><img src="imagenes/spacer.gif" width="1" height="5"></td>
</tr>
<tr>
<td>Telefonor:</td>
<td> <input type="text" name="phone" class="t_n" maxlength="7" size="25"></td></tr>
<tr>
<td colspan="2"><img src="imagenes/spacer.gif" width="1" height="5"></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input type="text" class="t_n" size="25" name="mail"></td>
</tr>
<tr>
<td> </td>
<td><img src="archivos_index/spacer.gif" width="1" height="5"></td>
</tr>
<tr>
<td valign="top">Comentarios:</td>
<td><textarea name="coment" cols="32" rows="6" wrap="VIRTUAL" class="t_n"></textarea></td>
</tr>
</table><br>
<input type="button" name="Submit" value="Submit" class="t_n" onClick="check_form()"> <input value="Reset" class="t_n" type="reset">
<br><br> <?
}else{
//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo = "Formulario enviado\n";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "\n";
$cuerpo .= "Apellido: " . $HTTP_POST_VARS["apellido"] . "\n";
$cuerpo .= "Telefono: " . $HTTP_POST_VARS["phone"] . "\n";
$cuerpo .= "Email: " . $HTTP_POST_VARS["mail"] . "\n";
$cuerpo .= "Comentarios: " . $HTTP_POST_VARS["coment"] . "\n";
//mando el correo...
mail("[email protected]","Formulario recibido",$cuerpo);
echo "<br>";
//doy las gracias por el envío
echo "<div align='center'>Gracias por contactarnos le responderemos a la brevedad.</div>";
}
echo "<br>";
echo "<div align='center'><input type='button' class='t_n' value='Back' onclick='window.history.back()'></div>";
?> hay tienes algo modifica los datos y listo gracias viejo |