Hi,
I’m using php -> contact-form-recaptcha-v3.php to send my form.
The form has checkboxes and the form works – sends the submitted info – except the email received only lists the last selected item of the checkbox set.
One of my checkboxes is for the days of the week. https://princensammyfoundation.com/become-a-volunteer. The form lists the dates and checkboxes as
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" name="days[]" type="checkbox" data-msg-required="Please select at least one option." id="days_Mon" value="Monday"> Monday
</label> </div>
<div class="form-check form-check-inline">
<label class="form-check-label">
<input class="form-check-input" name="days[]" type="checkbox" data-msg-required="Please select at least one option." id="days_Tue" value="Tuesday"> Tuesday
</label>
</div>
etc, for Monday through Sunday checkboxes.
And contact-form-recaptcha-v3.php includes the lines from 77 – 80 which seems to be for the checkbox array
// Checkboxes
if( is_array($value) ) {
// Store new value
$value = implode(', ', $value);
}
But when I fill out the form, if I select Wednesday and Friday, only Friday displays in the email when it is received.
Am I missing something?
Thank you,
Alison
-
This topic was modified 1 month, 3 weeks ago by
Support.