[eluser]Damien K.[/eluser]
With many, many pages, you may want to look into some template "engine" to address issues like this and others.
I assume you don't like the work flow:
if on input error, show the "main" mailing list sign up page with error messages
This does redirect users to a different page. However, many sites do adopt this work flow. One way to achieve the redirect to the calling page is to use the referrer url. Storing the calling url in a dynamically set hidden field is an alternative. Ideally, you would use JavaScript for client-side validation and add AJAX for server-side validation.
I personally don't mind the work flow with users being redirected to main sign up page on error.