Server Side AJAX Handling with Yii and PHP
In this example we are using data input from the AJAX method via the $_POST var. We can use this data to do a desired server side action such as update a record, create a record, retrieve a record, etc. Finally we can send back an appropriate message or data set in our response to the client.