Jump to content

holding a check box value


anth0ny

Recommended Posts

Hi on my cms page when i go to edit a page i have a tick box for special offer. The edit page doesnt hold the check box value?

 

<input name="specialoffer" class="fields" id="specialField" type="checkbox" value="<?=$specialoffer;?>" />

 

Does anyone know why this may be?

 

I would change:

<input name="specialoffer" class="fields" id="specialField" type="checkbox" value="<?=$specialoffer;?>" />

 

to

<input name="specialoffer" class="fields" id="specialField" type="checkbox" value="<?php echo $specialoffer; ?>" />

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.