Unable to print form submission result The structure of my form is as follows:

Form is built here


  function mymodule_member_search_form


The form submission processing happens in the callback function


  _mymodule_search_form_submit(&amp;$form, &amp;$form_state)


Here I am able to get the results and do the various processing I want and the final result I have stored in

if(isset($myvalues)){
        $form['results'] = array(
            '#type'     =&gt; 'item',
            '#markup'   =&gt; $myvalues,
        );
    }


But the values are not printed on the page after form submission, I have also set 

$form_state['rebuild'] = TRUE;


in the above submission function

What am I missing here?

Additional Information is this form I have added as a block. So do I have to pass this ass the result of block? If yes, how do I do that?

Thanks.
I believe you start with a fresh form in mymodule_member_search_form(), i.e. with $form = array();. Is it correct? If so, your $form['results'] are not in the form returned by mymodule_member_search_form(). You should either do the processing in form callback itself or fetch results from the form prior to redefining it.