I am using the email contact form as described on this page:
http://ellislab.com/expressionengine/user-guide/modules/email/contact_form.html
My actual form is here:
http://bit.ly/gyXlIg
I am confused. Am I allowed to create fields other than name, subject, message? You see I have a dropdown select, in addition to the standard fields. How do I get the input for the dropdown to show up in the email the system generates? Is this possible with the email contact form? Or must I use something else to do this?
Here’s my code for the form:
{exp:email:contact_form user_recipients="false" recipients="[email protected]" charset="utf-8" redirect="5" return="http://mydomain.com/thanks/"}
<div id="contact_form">
<label for="name"><span class="asterisk">* </span>Name:</label>
<input type="text" id="name" name="name" size="32" maxlength="100" value="" /></p>
<label for="from"><span class="asterisk">* </span>Email:</label>
<input type="text" id="from" name="from" size="32" maxlength="100" value="" /></p>
<label for="subject"><span class="asterisk">* </span>Subject:</label>
<input type="text" id="subject" name="subject" size="32" value="" /></p>
<label for="howheard"><span class="asterisk">* </span>How did you hear about us?</label>
<select name="howheard" name="message[]">
<option value="fiat" selected="selected">Please Choose One:</option>
<option value="colleage_business_associate">Colleague or Business Associate</option>
<option value="news_article">News Article/News Release</option>
<option value="internet_search">Internet Search</option>
<option value="advertisement">Advertisement</option>
<option value="event">Event</option>
<option value="personal_meeting">Personal Meeting</option>
<option value="other">Other (enter in field below)</option>
</select>
<label for="subject">If other (from above), please specify:</label>
<input type="text" id="other_specify" name="message[]" size="32" value="" /></p>
<label for="message"><span class="asterisk">* </span>Message:</label>
<textarea id="message" name="message[]" rows="10" cols="70"></textarea>
<input name="submit" type='submit' value='Submit' /></p>
</div>
{/exp:email:contact_form}