in reply to mod_perl user input/html forms

You're on the right track. Take a look at:

Input and Output Filters.