Ver Mensaje Individual
  #5 (permalink)  
Antiguo 20/11/2004, 11:24
Avatar de macabro
macabro
 
Fecha de Ingreso: enero-2003
Ubicación: venus >> ((_\
Mensajes: 254
Antigüedad: 21 años, 2 meses
Puntos: 1
Bueno trata de hacerlo asi haber si te funciona,
Código PHP:
<? 

if(isset($_POST['Submit'])){ 
          
$nombre=$_POST['nombre']; 
          
$apellido=$_POST['apellido']; 
          
$mail=$_POST['email']; 
    
//nose si en tu base de datos es, EMAIL o MAIL
    
$chek_email "SELECT * FROM clientes WHERE email='$email'"//mail
    
$result mysql_query($chek_email);
    
$numrows mysql_num_rows($result);
    if (
$numrows!=0) {
        echo 
"<font color='#FF0000'><b>Error</b> </font> el email ".$_POST['email']." ya existe, por favor intente con otro";
        exit();
}
          
/* recipientes */ 
$para  "[email protected]", "
$para .= "[email protected]"

/* asunto */ 
$asunto "Registro de Nuevo Cliente"

/* mensaje */ 
$mensaje 
<html> 
<head> 
<title>Registro de Nuevo Cliente</title> 
</head> 
<body> 
<p><h5>Estos Son los datos del Nuevo cliente Que se ha suscrito en Pomacocha Tours</h5></p> 

<b>Nombre </b> '
.$nombre.
<br> 
<br> 
<b>Apellido</b> '
.$apellido.
<br> 
<br> 
  <b>Email</b>    '
.$mail.
   
    
</body> 
</html> 
'


$cabeceras  "MIME-Version: 1.0\r\n"
$cabeceras .= "Content-type: text/html; charset=iso-8859-1\r\n"
$cabecera .= "Content-Transfer-encoding: 8bit\r\n"
$cabecera .= "X-Priority: 1\r\n"
$cabecera .= "X-MSmail-Priority: High\r\n"
$cabecera .= "Content-type: text/html; charset=WINDOWS-1255\\r\\n"
$cabecera .= "X-Mailer: Microsoft Office Outlook, Build 11.0.5510\r\n"//hotmail and others dont like PHP mailer. 
$cabecera .= "X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441\r\n"
$cabeceras .= "From: Sistemita de Registros <[email protected]>\r\n"

/* y ahora, enviarlo */ 
mail($para$asunto$mensaje$cabeceras); 
echo 
"<script>alert('Gracias por Registrarse en nuestro Newsletter')</script>"
}

Última edición por macabro; 20/11/2004 a las 11:26