I don't think this is a job for Perl. I would write some javascript to do this and get rid of the pull downs. Make your javascript robust enough to handle various inputs. Once you build some date and time validators, you can reuse it. I do this for my customers with date and time fields. First, you want your customers to have instant feed back.(Be interactive when it needs to be - errors, prompting for missing fields, etc. ) Second, round trips to your script is unneccessary. Third, your content will be more user friendly to your customer.