Ver Mensaje Individual
  #13 (permalink)  
Antiguo 24/10/2003, 19:18
Avatar de Gerald
Gerald
 
Fecha de Ingreso: julio-2003
Mensajes: 1.356
Antigüedad: 20 años, 9 meses
Puntos: 2
Voy entendiendo

Código PHP:
 $cuerpo .=  "Email: " :  . $_POST["email"] . "\n";
 
$cuerpo .= "Bar Code: " $_POST["barcode"] . "\n"
 
$cuerpo .= "Iniciales: " $_POST["iniciales"] . "\n"
 
$cuerpo  nl2br($cuerpo);
        
    
$to "[email protected]";
    
$subject "$nombre ha enviado este formulario";
    
$mailheader "MIME-Version: 1.0 \r\n"
    
$mailheader .= "Content-type: text/html; charset=iso-8859-1 \r\n"
    
$mailheader .= "From: Formulario de Discos <$email> \r\n"
    
$mailheader .= "Return-path: $email \r\n";
    
$mailheader .= "X-Priority: 1 \r\n"
    
$mailheader .= "X-MSMail-Priority: High \r\n"
    
$mailheader .= "X-Mailer: PHP/".phpversion()." \n"
    if (
mail ($to,$subject,$cuerpo,$mailheader))
    {
    
header("Location:gracias.html");
    exit;
    } else {
    
header("Location:error.html");
    exit;
    }
    
?> 
Asi mis variables ya serian superglobales

En el caso de mail() asi las dejaria o que debo hacer
Código PHP:
if (mail ($to,$subject,$cuerpo,$mailheader)) 

gracias nuevo
__________________
Solo por Hoy: Trataré de fortalecer mi mente. Estudiaré y aprenderé algo útil
Hoteldipity
Arte Caracol