Ver Mensaje Individual
  #4 (permalink)  
Antiguo 30/03/2008, 13:45
jpeeri
Invitado
 
Mensajes: n/a
Puntos:
Re: problemas con el contactanos

El echo "in"; sobra:

Código PHP:
<?php
if($_POST["nombre"]){
$nombre trim(stripslashes($_POST["nombre"]));
$email trim(stripslashes($_POST["email"]));
$ciudad trim(stripslashes($_POST["ciudad"]));
$estado trim(stripslashes($_POST["estado"]));
$comenta trim(stripslashes($_POST["comenta"]));
$msg "<b>Nombre:</b> $nombre<br />\r\n";
$msg .= "<b>E-mail:</b> $email<br />\r\n";
$msg .= "<b>Ciudad:</b> $ciudad<br />\r\n";
$msg .= "<b>Estado:</b> $estado<br />\r\n";
$msg .= "<b>Reason:</b> $reason<br /><br />\r\n";
$msg .= $comenta;
$headers "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; UTF-8\r\n";
$headers .= "From: $name <$email>\r\n";
if (
mail("[email protected]""Contacto de la web: $nombre"$msg$headers))
{
echo 
"<center><font color=\"#FFFFFF\">Tu mensaje fue enviado. Gracias por ponerte en contacto con nosotros!</font></center><br />\r\n";
}
else
{
echo 
"<center><font color=\"#FF0000\">Error! Tu mensaje no pudo ser enviado. Intenta mas tarde.</font></center><br />\r\n";
}
}

?>

<center><font color="#000000">Todos los comentarios que tengas para el web master lo podes hacer desde aca!!!</font></center>
<center>
<form method="post" action="webmaster.php">
<table align="center" border="0" width="480">
<tbody>
<tr>
<td align="right" height="23" width="258"><p align="right"><font color="#000033" face="Arial" size="2"> </font><font face="Arial" size="2"><span class="style8">Nombre</span></font><font color="#000033" face="Arial" size="2">:</font></p></td>
<td height="23" width="392"><input name="nombre" id="nombre" size="40" maxlength="50">
</td>
</tr>
<tr>
<td align="right" width="258"><div class="style8" align="right"><font face="Arial" size="2">E-mail:</font></div></td>
<td width="392"><input name="email" id="email" size="40" maxlength="70">
</td>
</tr>
<tr>
<td align="right" width="258"><div class="style8" align="right"><font face="Arial" size="2">Ciudad:</font></div></td>
<td width="392"><input name="ciudad" id="ciudad" size="40" maxlength="20">
</td>
</tr>
<tr>
<td align="right" width="258"><div class="style8" align="right"><font face="Arial" size="2">Estado:</font></div></td>
<td width="392"><input name="estado" id="estado" size="40" maxlength="70">
</td>
</tr>
<tr>
<td align="right" width="258"><div class="style8" align="right"><font face="Arial" size="2">Comentarios:</font></div></td>
<td width="392"><textarea name="comenta" cols="36" rows="5" id="comenta"></textarea>
</td>
</tr>
<tr>
<td width="258">&nbsp;</td>
<td width="392">&nbsp;</td>
</tr>
<tr>
<td width="258">&nbsp;</td>
<td width="392"> <input name="submit" value="Enviar" type="submit">
<input name="Reset" value="borrar" type="reset">
<span class="style7">
<input name="requiere" value="nombre,email,ciudad,estado,comenta" type="hidden">
<input name="destino" value="[email protected]" type="hidden">
<input name="extension" value="php" type="hidden">
</span> </td>
</tr>
</tbody>
</table>
</form>
</center>
</td>
</tr>

</table></center>