# I can't save data from form to database

**URL:** <https://discourse.cakephp.org/t/i-cant-save-data-from-form-to-database/816>\
**Category:** Need Help\
**Created:** [July 26, 2016, 6:27pm UTC](https://discourse.cakephp.org/t/i-cant-save-data-from-form-to-database/816 "2016-07-26T18:27:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![angeloghiotto](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@angeloghiotto](https://discourse.cakephp.org/u/angeloghiotto)\
**Post date:** [July 26, 2016, 6:27pm UTC](https://discourse.cakephp.org/t/i-cant-save-data-from-form-to-database/816/1 "2016-07-26T18:27:10Z")

</div>

Hi, i’m working with cake 2.x , i’m trying to save a data from a form created with a formHelper , but is not working for new fields i´ve add up recently, and i dont know why, here onde example of the code:

Starting the form:

`<?php echo $this->Form->create('Briefing', array('type' => 'file')); ?>`

… than many fields that works, likes these:

```
<?php echo $this->Form->label('Briefing.categoria_id', 'Categoria', 'control-label'); ?>
<?php echo $this->Form->input('Briefing.categoria_id', array('class' => 'input-xxlarge', 'div' => 'controls', 'label' => false))." "; 

```

and, so , these do not work;

```
echo "GRU";
echo $this->Form->checkbox('GRU')." "; 
echo "VOL ";
echo $this->Form->checkbox('Briefing.VOL')." ";

```

why it is happening?

---

<div class="post-metadata">

**Author:** ![angeloghiotto](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@angeloghiotto](https://discourse.cakephp.org/u/angeloghiotto)\
**Post date:** [July 26, 2016, 9:17pm UTC](https://discourse.cakephp.org/t/i-cant-save-data-from-form-to-database/816/2 "2016-07-26T21:17:52Z")

</div>

It was the Cache, when i clean the cache, everything works. Thanks
