Url In Get

Actually I am using $_GET parameter to have a form submission,but the URL shows irrelevant details.Now how to customize the URL property of GET so that it shows only the model name and its attributes.

It is better to use POST method for submit and show in url only the controller/action-update/id.

Now how to show in URL the controller/action-update/id using POST method?

echo CHtml::beginForm($this->createUrl(‘your-controller/your-action’))

But how to retrieve the name of attributes submitted in the Url.I am trying to use :


where $a,$b and $c are the values of those selected attributes.I am only getting the value as it is of $a,$b and $c printed in the Url,not the respective values.

Note:I am using this function in index.php of my controller.