Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/03/2010, 09:07
pabliich
 
Fecha de Ingreso: marzo-2010
Mensajes: 28
Antigüedad: 14 años
Puntos: 0
Formulario Php

Hola amigos, como va? Les comento que tengo un problema con un formulario de contacto de una web.

El codigo html es el siguiente:
Cita:
<form name="contact" id="contact" action="contact.php" enctype="multipart/form-data">
<div style="width:177px;">
<div class="inp_h">
<input class="inp_2" type="text" name="name" value="Nombre y Apellido:" onfocus="this.value=''" />
</div>
<div class="inp_h">
<input class="inp_2" type="text" name="mail" value="E-mail:" onfocus="this.value=''" />
</div>
<div class="inp_h">
<input class="inp_2" type="text" name="Phone" value="Telefono:" onfocus="this.value=''" />
</div>
<textarea class="inp_3" rows="30" cols="40" onfocus="this.value=''">Mensaje:</textarea>
<div style="width:177px; text-align:right; margin:10px 2px 0 0;">
<a href="#" onClick="document.getElementById('contact').reset( )"></a><img src="images/spacer.gif" alt="" width="8" height="1" /><a href="#" onClick="document.getElementById('contact').submit ()"><img src="images/botton_2-02.gif" style="border:0px none;" alt="ENVIAR" /></a><br />

y el codigo php es el siguiente:

Cita:
<?php
Error_Reporting(E_ALL & ~E_NOTICE);

while ($request = current($_REQUEST)) {
if (key($_REQUEST)!='recipient') {
$pre_array=split ("&777&", $request);

$post_vars[key($_REQUEST)][0]=preg_replace ("/<[^>]*>/", "", $pre_array[0]);
$post_vars[key($_REQUEST)][1]=preg_replace ("/<[^>]*>/", "", $pre_array[1]);
}
next($_REQUEST);
}



reset($post_vars);


$subject="From ".$post_vars['Maximo Exponente'][0] ;
$headers= "From: ".$post_vars['[email protected]'][0] ."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
$message='';
while ($mess = current($post_vars)) {
if ((key($post_vars)!="i") && (key($post_vars)!="[email protected]") && (key($post_vars)!="Maximo Exponente")) {

$message.="<strong>".$mess[1]."</strong>&nbsp;&nbsp;&nbsp;".$mess[0]."<br>";
}
next($post_vars);
}

mail($_REQUEST['recipient'], $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
".$message."
</body>
</html>" , $headers);
echo ("Your message was successfully sent!");

?>
<script>
resizeTo(300, 300);
</script>

Cuando entro a la web y relleno los campos, me dice que el msj ah sido enviado correctamente, pero no me llega nada :(