Programmatically develop search exposed filters
I finally managed to do this with the following changes. 

I have changed the form method from post to get and then took the value of search term for url using $_GET 
Assigned action to the current page on which I am.

Changed the following code to

    'page callback' =&gt; 'drupal_get_form',
    'page arguments' =&gt; array('recordingcrud_sort_with_pager_content'),


to 

'page callback' =&gt; 'recordingcrud_sort_with_pager_content',


and removed the second line.