I’m getting an “email message is required” error message on my contact form. Here is the code I’m using:
{exp:email:contact_form user_recipients="false" redirect="3"}
<select name="recipients" id="recipients">
<option selected="selected">-- Deliver To --</option>
<option value="<?php echo base64_encode('email'); ?>">Deron</option>
<option value="<?php echo base64_encode('email'); ?>">Steven</option>
<option value="<?php echo base64_encode('email'); ?>">Nathan</option>
</select>
<label for="name">Your Name:</label> <span class="requiredfield">(required)</span>
<input type="text" class="field" id="name" name="required[]" size="40" maxlength="40" value="" />
<label for="from">Your Email:</label> <span class="requiredfield">(required - never shared)</span>
<input type="text" class="field" id="from" name="required[]" size="40" maxlength="40" value="" />
<label for="subject">Subject:</label> <span class="requiredfield">(required)</span>
<input type="text" class="field" id="subject" name="required[]" size="40" value="" />
<label for="message">Message:</label> <span class="requiredfield">(required)</span>
<textarea id="message" class="field-message" name="message[]" rows="8" cols="60"></textarea>
<input class="submit" name="submit" type='submit' value='Submit Form' />
{/exp:email:contact_form}I’m sure it has something to do with the required fields “name” attribute, but I’m not sure what I’m doing wrong. I’ve followed the docs to what I think is accurate?
Thanks