How To Process A Form With A External .php Page

I’m trying to use the jquery .post() function to submit a form. One of the parameters is url, which is asking for the location of the page used to process form data.


How would I do this in yii?


You could do it directly in the view using <script> tag.

Another possibility is use of built-in YII class CClientScript and its method registerScript -

I understand the using of the script tag. My problem is that .post is looking for processFrom.php to process a form, but its not finding it. I tried it in a couple of places, vendors folder and in its own folder in root.