ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

checkboxes failing in email module contact form

January 16, 2011 6:23pm

Subscribe [2]
  • #1 / Jan 16, 2011 6:23pm

    contamine

    11 posts

    In EE 2.1.3 I am trying to use a single checkbox in a contact form. All other fields in the form are working but the checkbox yields no results in the sent emails. Here is the code I am using (abbreviated to protect the innocent):

    {exp:email:contact_form user_recipients="false" recipients="[email protected]" charset="utf-8"}
     <label for="from">your email address:</label>
    
    <input type="text" id="from" name="from" size="40" maxlength="35" value="" /></p>
    
    <label for="message">message:</label>
     
    <textarea id="message" name="message" rows="12" cols="54"></textarea>
    
    <input type="checkbox" name="add_to_mailing_list" value="yes"> <label for="add_to_mailing_list">add me to the CR Guitars mailing list </label>
    
    <input name="submit" type='submit' value='Submit Form' /></p>
    {/exp:email:contact_form}

    Resulting emails contain only the message, no checkbox response (whether checked or not). Any ideas?

  • #2 / Jan 17, 2011 9:38am

    Sue Crocker

    26054 posts

    Answered in previous thread.. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases