I have this php file:
<?php
echo $_POST;
...
$.ajax({
type: "POST",
url: Yii::app()->createUrl('//newsletter/create'),
data: { name: "Daniel", phone: "01234123456" },
success: function(msg){
alert('Success!');
}
});
How do you redirect to the php file where the ajax request was made after the ajax POST request?