Ver Mensaje Individual
  #6 (permalink)  
Antiguo 18/04/2009, 14:25
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: Error en Php del Contactar LIGHFORM Ayuda!

Todo el bloque de asignacion de valores esta mal ubicado, o bien, habria que ponerlo asi:

Código PHP:
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
    
//User info (DO NOT EDIT!)
    
$name stripslashes($_POST['name']); //sender's name
    
$email stripslashes($_POST['email']); //sender's email
    
$website stripslashes($_POST['website']); //sender's website

    //The subject
    
$subject  "[Pregunta Sobre TryalCine] "//The default subject. Will appear     by default in all messages. Change this if you want.
    
$subject .= stripslashes($_POST['subject']); // the subject

    
$msg  "From : $name \r\n";  //add sender's name to the message
    
$msg .= "e-Mail : $email \r\n";  //add sender's email to the message
    
$msg .= "Website : $website \r\n"//add sender's website to the message
    
$msg .= "Subject : $subject \r\n\n"//add subject to the message (optional! It will be displayed in the header anyway)
    
$msg .= "---Message--- \r\n".stripslashes($_POST['message'])."\r\n\n";  //the message itself

    
$msg .= "---User information--- \r\n"//Title
    
$msg .= "User IP : ".$_SERVER["REMOTE_ADDR"]."\r\n"//Sender's IP
    
$msg .= "Browser info : ".$_SERVER["HTTP_USER_AGENT"]."\r\n"//User agent
    
$msg .= "User come from : ".$_SERVER["HTTP_REFERER"]; //Referrer

Asi, solo se realizara la asignacion cuando se haya enviado el formulario.
__________________
- León, Guanajuato
- GV-Foto