I couldn't really figure out what are you trying to do - could you explain better how does all this fit together - perhaps post more of the code (like what is the pass() doing)?
in reply to How do I maintain a radio button selection
Anyway you don't need use DBD::mysql - it's loaded automatically by DBI itself. And so far it seems like something to be solved using JS on the client side.
Have you tried freelancing/outsourcing? Check out Scriptlance
- I work there since 2003. For more info about Scriptlance and freelancing in general check out my home node