I work with yii form forms and I have a form like this:
<?php echo CHtml::beginForm('', 'post', array('enctype' => 'multipart/form-data')); ?> Image:<?php echo CHtml::activeFileField($model, 'image');?> <?php echo CHtml::error($model, 'image');?> Full name: <?php echo CHtml::activeTextField($model, 'fullName');?> <?php echo CHtml::error($model,'fullName'); ?> <?php echo CHtml::submitButton('save);?> <?php echo CHtml::endForm();?>
if when a user logs in, the error in the input field becomes empty, and then the user must re-select his image .. is there a way to save the value of the file field in yii or php?
Thank you in advance
source share