This is my field in signup.php (view file)
<?php $form = ActiveForm::begin(['method' => 'post','id' => 'form-signup','action' => 'http://localhost/basic1/web/index.php?r=site/reg']);?>
<?= $form->field($model, 'PhoneNumber') ?>
How to set value in register.php (view file)
<?=$form->field($model, 'PhoneNumber',array('value'=>'<?php echo $_POST['PhoneNumber']';?>)) ?>
Is there is any code to include in controller?