I am using a homegrown MVC framework. The client passes the current page #, the controller name, the desired task, and any pertinent data to the server. All of this information can either be in the URL or in the post object.
I would strongly suspect that the data to be saved should be stored in the post object, and probably the task as well since it applies only to post data. The page number and controller name maybe makes sense more in the URL since I will have similar get requests with the same page number and controller. I show it this way in the example below.
Where should I locate the information to be passed, and why? Thank you
$.post('index.php?page=123&controller=edit',{task:'saveSomething', data:'whatever'});