I\'m new to programming, and I\'m trying to call a function when the user inputs data and clicks submit button. I\'m using Yii2 and I\'m not familiar with Ajax. I tried deve
you have to pass _csrf tokin as a parameter
_csrf: yii.getCsrfToken()
or you can disable csrf valdation