i want to submit a form via ajax javascript to cakephp function.
cakephp function accepts $this->data, so i want to convert html form datas to cakephp function acceptable format i.e $this->data(array)...
how to do this in javascript(jquery)
i want to submit a form via ajax javascript to cakephp function.
cakephp function accepts $this->data, so i want to convert html form datas to cakephp function acceptable format i.e $this->data(array)...
how to do this in javascript(jquery)
There is only one way to POST data, so the conversion must be done by cakephp.
Therefore however you submit a form, as long as it goes to the controller it should be automatically converted to $this->data
.