I'm using the Form API in a custom module to collect a large amount of user data, which is then collated and assessed to provide an output.
Currently I'm using ajax to refresh the form and display the output when the user submits the form. Should I be displaying the results in a different manner, or is it perfectly reasonable to do it in this manner?
Say for example I have a Myers-Briggs type survey. The user would answer a long string of questions, which on submission, I then collate and redisplay the form with results, links to other content, relevant articles etc (not just a simple result).
Is this too heavy use of the Form API to provide content, or is it reasonable for a performance and development standpoint to do it this way?
i.e.
$form['results']['#markup] = '<my markup>'