Best Way to Structure A Custom Block To Handle Form Submissions To Selective Pages

Permalink
Hi Guys,

say I have a block with a form to submit data to a choice of pages e.g. add, update delete etc.

I am thinking to have one block that I add to each page so it handles all the page rendering and controller functions in response to the POST data.

Is this the best approach to take or would you create single page templates including functional code or do it another way entirely?

I'm porting my code to C5, before I had the same page render differently by including code via a switch statement and having GET (query string) variables determine what page should be rendered.

Hopefully you can point me in the direction of best practice in terms of C5.

CodeOtaku