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?