Ver Mensaje Individual
  #21 (permalink)  
Antiguo 06/10/2008, 13:46
cccdigital
 
Fecha de Ingreso: octubre-2008
Mensajes: 20
Antigüedad: 16 años, 4 meses
Puntos: 0
Respuesta: Crear send.php a partir de un formulario ya echo en html

lo eh leido sinceramente que si , no es por molestar ni que otro me haga el trabajo, esque no entiendo los problemas mira aora me da error en la linea 18 :(
las que tan en negrito :( en verdad lo siento por las inconveniencias que yo te haiga causado.. :(

<head
<body>

<?php

$nombre = seguridad ($_POST['nombre']);
$cognom = seguridad ($_POST['cognom']);
$sexo= seguridad ($_POST['sexo']);
$direccion = seguridad ($_POST['direccion']);
$poblacion = seguridad ($_POST['poblacion']);
$provincia = seguridad ($_POST['provincia']);
$numero = seguridad ($_POST['numero']);
$email = seguridad ($_POST['email']);



Linea 18 if ($nombre ==NULL || $cognom ==NULL || $sexo ==NULL || $direccion ==NULL || $poblacion ==NULL || $provincia ==NULL || $email ==NULL || $numero ==NULL)){


echo '<div align=center><table width="600" border="0" cellspacing="0" cellpadding="0">';
echo '<tr aling= "center" class="Estilo1">';
echo "<div align=center>";
echo "Por favor rellene El formulario entero.";
echo "</div>";
echo "<br>";
echo "<br>";
echo "<div align=center>";
echo "<a href= \"javascript:history.go(-1)\" class=\"Estilo1\">Torna</a>";
echo "</div>";
echo "</tr>";

echo "</table>";
echo "</div>";


}else {

if (isset ($_POST['nombre']) ){



$nombre_origen = "[email protected]";
$email_origen = "[email protected]";
$email_copia = "[email protected]";
$email_ocultos = "[email protected]";
$email_destino = "[email protected]"; //cambiar esta linea por la de encima cuando termine la aplicacion


$asunto = " Rebut email de contacte de ".$email."";

$mensaje = '<table width="629" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="623" align="left"></td>
</tr>
<tr>
<td bgcolor="#E0911B"><div style="color:#FFFFFF; font-size:14; font-family: Arial, Helvetica, sans-serif; text-transform: capitalize; font-weight: bold;"><strong> Email de contacte de '.$email.'</strong></div></td>
</tr>
<tr>
<td height="95" align="left" valign="top"><div style=" color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:12px; margin-bottom:3px;"> </strong><br><br>

<strong>NOM : </strong>'.$nombre.'</strong><br><br>
<strong>COGNOM : </strong>'.$cognom.'</strong><br><br>
<strong>DIRECCION : </strong>'.$direccion.'</strong><br><br>
<strong>MUMERO : </strong>'.$numero.'</strong><br><br>
<strong>POBLACION : </strong>'.$poblacion.'</strong><br><br>
<strong>PROVINCIA : </strong>'.$provincia.'</strong><br><br>
<strong>TELEFONO : </strong>'.$telefono.'</strong><br><br>
<strong>SEXO : </strong>'.$sexo.'</strong>
<strong>E-MAIL : </strong>'.$email.'</strong><br><br>


</div>
</td>
</tr>
</table>';




$formato = "html";

//************************************************** ***************//
$headers = "From: $nombre_origen <$email_origen> \r\n";
$headers .= "Return-Path: <$email_origen> \r\n";
$headers .= "Reply-To: $email_origen \r\n";


$headers .= "X-Sender: $email_origen \r\n";

$headers .= "X-Priority: 3 \r\n";
$headers .= "MIME-Version: 1.0 \r\n";
$headers .= "Content-Transfer-Encoding: 7bit \r\n";

//************************************************** ***************//

if($formato == "html")
{ $headers .= "Content-Type: text/html; charset=iso-8859-1 \r\n"; }
else
{ $headers .= "Content-Type: text/plain; charset=iso-8859-1 \r\n"; }

if (@mail($email_destino, $asunto, $mensaje, $headers))
{




}

?>
</body>

</head>