Returning form errors for a form which appears on various pa

Quick Question,
I’ve got a form that is displayed on a variety of pages (i.e., the url
is dynamic). In the case of a form validation error I would like to
redirect back to this dynamic url and display the error messages. While
I can redirect back to the given url I can’t seem to pass the form data
and error information.

Any help on how to achieve this would be great, thanks