Grow your CSS skills. Land your dream job.

Problem with message in email form

  • # May 6, 2011 at 11:19 am

    Hi
    I have a problem with an email form
    it doesn’t send me the message part of the form
    just the name and the email

    This is the form:























    This is the php:

    < ?php
    $field_name = $_POST;
    $field_email = $_POST;
    $field_message = $_POST;

    $mail_to = 'contacto@neonmarketing.com.mx';
    $subject = 'Mensaje dejado en website www.cetem.com.mx'.$field_name;

    $body_message = 'De: '.$field_name."n";
    $body_message .= 'E-mail: '.$field_email."n";
    $body_message .= 'Mensaje: '.$field_message;

    $headers = 'De: '.$cf_email."rn";
    $headers .= 'Responder: '.$cf_email."rn";

    $mail_status = mail($mail_to, $subject, $body_message, $headers);

    if ($mail_status) { ?>

    < ?php
    }
    else { ?>

    < ?php
    }
    ?>

    can you tell me what’s wrong?
    Thanks

    # May 6, 2011 at 5:50 pm

    In your form, the message input name is ‘mensaje’ and in your php, you’re calling for ‘f_mensaje’

    # May 9, 2011 at 12:19 pm

    jejeje…… :D thanks man!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".