# Newbie (insert won't insert data)

**URL:** <https://discourse.cakephp.org/t/newbie-insert-wont-insert-data/1150>\
**Category:** Need Help\
**Created:** [September 12, 2016, 6:29pm UTC](https://discourse.cakephp.org/t/newbie-insert-wont-insert-data/1150 "2016-09-12T18:29:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pekinese](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/pekinese/32/391_2.png) [@pekinese](https://discourse.cakephp.org/u/pekinese)\
**Post date:** [September 12, 2016, 6:29pm UTC](https://discourse.cakephp.org/t/newbie-insert-wont-insert-data/1150/1 "2016-09-12T18:29:35Z")

</div>

I’ve been editing the cakephp script of a friend.  
First of all I edited the view and added a new form input element by using:

```
<?=
$this->Form->input('withdrawal_bitcoin', [
    'label' => false,
    'placeholder' => __('Bitcoin Adress,
    'class' => 'form-control'
])
?>

```

After this I added a new database attribute to the users table called “withdrawal\_bitcoin”.  
Now I opened the signup action and inserted this code:

```
$user->withdrawal_bitcoin = $this->request->data['withdrawal_bitcoin'];

```

I tried to run this, but the result is, nothing gets inserted into database. When I use a “die(var\_dump($this-\>request-\>data[‘withdrawal\_bitcoin’]))” inside the controller action I’m able to see the entered value, so the value is not “empty”. Any idea where things go wrong?

---

<div class="post-metadata">

**Author:** ![ali](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/ali/32/123_2.png) [@ali](https://discourse.cakephp.org/u/ali)\
**Post date:** [September 12, 2016, 10:31pm UTC](https://discourse.cakephp.org/t/newbie-insert-wont-insert-data/1150/2 "2016-09-12T22:31:06Z")

</div>

I’m assuming the withdrawal\_bitcoin field actually exists in the users table (also assuming it’s the users table)?

In cases such as this, most of the time it has to do with validation. Is this field being validated in the model in some ways?

Other than that, can you post the whole signup action?

Oh, and I guess it’s a copy & paste mistake, but after “Bitcoin Adress” there’s no **')**
