I have the follow code, with checkboxes. Tried to do an array. I send these checkboxes to my mail-process file. How I do, that I only get these values, from these checkboxes, they are checked?
<div class="cpt-item four columns">
<div class="thumb-wrapper">
<img src="/assets/images/custom/bigb002.jpg" alt="The Big Buddha Temple">
</div>
<div class="cpt-detail">
<h2 class="cpt-title">The Big Buddha Temple</h2>
add this item<input type="checkbox" name="tmitem[0]" value="The Big Buddha Temple"></input>
</div>
</div>
<div class="cpt-item four columns">
<div class="thumb-wrapper">
<img src="/assets/images/custom/watplailaem002.jpg" alt="Wat Plai Leam">
</div>
<div class="cpt-detail">
<h2 class="cpt-title">Wat Plai Leam</h2>
add this item<input type="checkbox" name="tmitem[1]" value="Wat Plai Leam"></input>
</div>
</div>
<div class="cpt-item four columns">
<div class="thumb-wrapper">
<img src="/assets/images/custom/redwat001.jpg" alt="Red Temple Lamai">
</div>
<div class="cpt-detail">
<h2 class="cpt-title">Red Temple Lamai</h2>
add this item<input type="checkbox" name="tmitem[2]" value="Red Temple Lamai"></input>
</div>
</div>
<div class="cpt-item four columns">
<div class="thumb-wrapper">
<img src="/assets/images/custom/laemsor001.jpg" alt="Leam Sor Pagoda">
</div>
<div class="cpt-detail">
<h2 class="cpt-title">Leam Sor Pagoda</h2>
add this item<input type="checkbox" name="tmitem[3]" value="Leam Sor Pagoda"></input>
</div>
</div>
<div class="cpt-item four columns">
<div class="thumb-wrapper">
<img src="/assets/images/custom/mumonk001.jpg" alt="Mummified Monk">
</div>
<div class="cpt-detail">
<h2 class="cpt-title">Mummified Monk</h2>
add this item<input type="checkbox" name="tmitem[4]" value="Mummified Monk"></input>
</div>
</div>
<div class="cpt-item four columns">
<div class="thumb-wrapper">
<img src="/assets/images/custom/buddhapath001.jpg" alt="Buddha Footprint">
</div>
<div class="cpt-detail">
<h2 class="cpt-title">Buddha Footprint</h2>
add this item<input type="checkbox" name="tmitem[5]" value="Buddha Footprint"></input>
</div>
</div>