How to post data in model from submited username and field range?

so, in view there’s form name and field range, if i click submit show data from model with that valid name and date.

It isn’t clear about what do you want to achieve. Would you please clarify?

1 Like

If you’re asking for validation, look at Yii’s ActiveForm
https://www.yiiframework.com/doc/api/2.0/yii-widgets-activeform
https://www.yiiframework.com/doc/guide/2.0/en/input-forms

If you want client-side validation, you need JavaScript. Yii has some basic client-side JavaScript validation based on your model’s rules, if you choose to use it.