in reply to How to pass html text field value to perl variable
You can either user Javascript to achieve something similar, or tell us what you actually want to achieve in the end, maybe there's a better solution.