# Checkboxes not doing it's job

**URL:** <https://forum.kirupa.com/t/checkboxes-not-doing-its-job/238051>\
**Category:** Uncategorized\
**Created:** [September 6, 2007, 5:33pm UTC](https://forum.kirupa.com/t/checkboxes-not-doing-its-job/238051 "2007-09-06T17:33:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deucescorner](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@deucescorner](https://forum.kirupa.com/u/deucescorner)\
**Post date:** [September 6, 2007, 5:33pm UTC](https://forum.kirupa.com/t/checkboxes-not-doing-its-job/238051/1 "2007-09-06T17:33:25Z")

</div>

Hello Kirupians,

here’s my problem:

I created 5 checkboxes but the problem is that if I check all of them and press send, once it reloads to tell me it’s sent then only one random checkbox is checked. And when I look at my email it only shows the random checkbox content.

here is the code

\<div class=“formText”\>\<input type=“checkbox” name=“EXTRA” value=“Hot tub - attached” \<? if( $var[‘EXTRA’] == ‘Hot tub - attached’ ) { echo ‘checked=“checked”’; }?\>/\> Winterize hot tub which is attached to pool $50\</div\>

\<div class=“formText”\>\<input type=“checkbox” name=“EXTRA” value=“Hot tub - separate” \<? if( $var[‘EXTRA’] == ‘Hot tub - separate’ ) { echo ‘checked=“checked”’; }?\>/\> Winterize hot tub which is separate from pool $75\</div\>

\<div class=“formText”\>\<input type=“checkbox” name=“EXTRA” value=“Vacuum pool” \<? if( $var[‘EXTRA’] == ‘Vacuum pool’ ) { echo ‘checked=“checked”’; }?\>/\> Vacuum pool (must be ordered in advance of closing) $65/hr\</div\>

\<div class=“formText”\>\<input type=“checkbox” name=“EXTRA” value=“Additional Covers” \<? if( $var[‘EXTRA’] == ‘Additional Covers’ ) { echo ‘checked=“checked”’; }?\>/\> Additional Covers $50\</div\>

\<div class=“formText”\>\<input type=“checkbox” name=“EXTRA” value=“Additional waterfalls, pumps, filtration system” \<? if( $var[‘EXTRA’] == ‘Additional waterfalls, pumps, filtration system’ ) { echo ‘checked=“checked”’; }?\>/\> Additional waterfalls, pumps, filtration systems $35\</div\>

what am I doing wrong?
