Friday, July 23, 2004

Newsletter Signup

Finally had a chance to add the print newsletter to the newsletter signup page on the site. It's now possible to subscribe to any of our newsletters (print or electronic) from a single page. I did a little script trickery to get things working the way I wanted. Basically, the script asks for your name and which newsletters to which you would like to subscribe. Then, once that's done it asks for your e-mail address, postal address, or both depending on which selections were made. The trickery comes in when moving to the "second" form. My validation script wasn't really designed to handle multi-page forms and so I had to come up with a way to satisfy the requirements of form validation and data processing. It was easy enough to set up but I certainly did not use the cleanest method to do so. I think maybe it's time to do some rethinking on the form validation/processing script I'm using. I should be better able to segment things so that it can handle a situation like this.

In the end, though, it seems to work just fine.