Routinely, I work with Web-based applications that have extremely complicated forms. Writing the routines to grab all of this data and untaint it can get quite tedious. As a result, I have written a program that will automate most of this for me. If you have an HTML document with a form (or forms), simply run this program with the HTML document as the argument and it will produce a separate file with each form. Each file will have the form parsing code that you need and even have some basic (but incomplete!) methods for untainting the data. This does not produce production-ready code, but it can easily speed up much of the 'drudge' work for form handling. The documentation is at: http://www.easystreet.com/~ovid/cgi_course/appendices/parse_form_pod.html The actual program is at: http://www.easystreet.com/~ovid/cgi_course/downloads/parse_form.pl Heck, you could even skip reading the documentation and just run the program: parse_form.pl some.html It's that easy to use. However, reading through the documentation will let you understand what's going on with the output and what you, as the programmer, will need to do to get it production ready. Cheers, Curtis Poe ===== Senior Programmer Onsite! Technology (http://www.onsitetech.com/) "Ovid" on http://www.perlmonks.org/ __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/