Hello,

I am developing a module that displays a form VIA a block. As we all know, blocks can be displayed on several pages through the (Show block on specific pages:) option setting. What I'm trying to accomplish is having a confirmation page for each form when submitted, while keeping the URL structure intact.

So for example, If I had created a block and wanted it displayed only on the following pages:
-http://example.com/page/this-is-a-page-1
-http://example.com/page/this-is-a-page-2

When the form is submitted, it would redirect here but, would need a callback.
-http://example.com/page/this-is-a-page-1/thanks
-http://example.com/page/this-is-a-page-2/thanks

How can I accomplish this? Any help would be greatly appreciated.

Thanks!