'Easy Contact' form not sending all fields to email address (2 posts)

  1. mrlockyer
    Posted 6 years ago #

    Hello all,

    I am trying to add a form to my website, and the form system I am using ('Easy Contact') seems to be perfect, apart from the fact that when I try to send a form, all that I get in the resulting email are three of the fields. I have looked through the .php, and can't see why some aspects should be available and not others (I'm not brill at php, mind).

    Could someone at least confirm that 'easy contact' is supposed to send all the filled in fields of the form to the email address?

    Thanks in advance,


    Site: http://www.sponsorus.org.uk (The submit an event page)
    WP: 2.8

  2. zgrs2k
    Posted 6 years ago #

    open the econtact.php file. Immediately after the comments section they name the input fields. I added the name and email to my messages so I used ec_name and ec_email. find the following sentence..."// And our actual message with extra stuff". this is the body of the message so this is where you would insert the fields that you want.

    I added the follwoing lines to that section

    $message      .=  __( 'Name: ', 'easy_contact' ) . strip_tags(trim($_POST['ec_name'])) . "\n\n---\n";
    $message      .=  __( 'Email: ', 'easy_contact' ) . strip_tags(trim($_POST['ec_email'])) . "\n\n---\n";

    and now the email includes the name and emai. Hope that's what you were looking for.


Topic Closed

This topic has been closed to new replies.

About this Topic