I have a form that is created in a block in drupal, what I would like to do is display a result of the calculated values passed to the form in the same block.
- I render the form using
_block_view $blocks['content'] = drupal_render(drupal_get_form('form_name'));
- the form is displayed
- on form submit I do a calculation on the posted values
- from here I want to display the result in the original block
How do I capture the result and display it, or ideally display it under the form retaining the forms values?