Cita:
Iniciado por rutame
Donde recibes, es decir, en el fichero que tengas en el "action" del formulario.
Este es el fichero que tengo en el action
<?php
if(!empty($_POST['firstname']) AND
!empty($_POST['lastname']) AND
!empty($_POST['useremail']) AND
!empty($_POST['usermessage'])){
$to ="
[email protected]";
$headers = "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "From:".$_POST['firstname']."\r\n";
$tema="Contact from website";
$mensaje="
<table border='0' cellspacing='2' cellpadding='2'>
<tr>
<td width='20%' align='center' bgcolor='#FFFFCC'><strong>Firstname:</strong></td>
<td width='80%' align='left'>$_POST[firstname]</td>
</tr>
<tr>
<td width='20%' align='center' bgcolor='#FFFFCC'><strong>Lastname:</strong></td>
<td width='80%' align='left'>$_POST[lastname]</td>
</tr>
<tr>
<td width='20%' align='center' bgcolor='#FFFFCC'><strong>Email:</strong></td>
<td width='80%' align='left'>$_POST[useremail]</td>
</tr>
<tr>
<td align='center' bgcolor='#FFFFCC'><strong>Departament:</strong></td>
<td align='left'>$_POST[mi_select]</td>
</tr>
<tr>
<td align='center' bgcolor='#FFFFCC'><strong>Message:</strong></td>
<td align='left'>$_POST[usermessage]</td>
</tr>
</table>
";
@mail($to,$tema,$mensaje,$headers);
echo "<META HTTP-EQUIV='Refresh' CONTENT='0;URL=../contact-send.html'>";
} else {
echo "<META HTTP-EQUIV='Refresh' CONTENT='0;URL=../contact-error.html'>";
}
?>
Lo he colocado en varios lugares pero no me aparece nada diferente.