Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/04/2007, 12:09
rashid
 
Fecha de Ingreso: enero-2002
Ubicación: Perez Zeledon Costa Rica
Mensajes: 1.009
Antigüedad: 22 años, 4 meses
Puntos: 11
Re: Formula de contacto php

Gracias por tu ayuda Ixtleco.

Lo que pasa es que yo tengo la formula de contacto en html y luego le envio los datos a otra pagina php.

Mira te adjunto la pagina php para que la revises.

<?
$to = "[email protected], $Email";
$head = "Contact Request From www.mysite.com";
$body="
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<title>Contact Request From My site.com</title>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
</head>
<body>";


$body.=" <p>Incoming request from www.mysite.com</p>


<table width='100%' border='0'>
<tr>
<td width='23%'>Bike Fullday:</td>
<td width='73%'>".$bikefullday."</td>
</tr>
</table>";

if ($bikefullday != "") {
print "Bike full day";
}

"<p>Thanks-<br>
<a href='http://www.mysite.com'>http://www.mysite.com</a><br>
</p>
<br>
</body>
</html>";


$headers .= "From: My site <[email protected]> \n";
$headers .= "X-Sender: <[email protected]>\n";
$headers .= "X-Mailer: PHP\n"; //mailer
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <[email protected]>\n";
//Uncomment this to send html format
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
//$headers .= "cc: [email protected]\n"; // CC to
//$headers .= "bcc: [email protected]"; // BCCs to, separete multiple with commas [email protected], [email protected]
mail($to, $head , $body ,$headers);
echo "<script>document.location.href='submitdone.php?e= ".$Email."&n=".$name."'</script>";
?>