Changing value after signing up

After signing up the user has “Account Status” field and when you register it automatically sets it “Active”. I created a form for users so that I’ll be able to change the user details, but every time I change something it doesn’t change.

Ex. I edited the account_status into Inactive but still remains Active


<?= $form->field($model, 'account_status')->dropDownList(

    						[

    							'Active' => 'Active',

    							'Inactive' => 'Inactive',

    						],

    						['prompt' => 'Change Account Stats']


    ) ?>

What value in $model->account_status?

Please post your controller code.

By default when you signup, it’s “Active”. But if I change it into “Inactive” it doesn’t change the value.

The controller code only contains the default code when I generated it.