I don't like JavaScript, and in this case, it is not even necessary. Your clients could alter the JavaScript code, and what happens then to your input processing? Things like these should be left to the server, because of error checking, a.s.o.
Well, why don't you just write ONE perl script, where you decide via if(){..} else {..} what do to with the user input depending on the checked values? That would be a) safer and b) the perl way.