in reply to
<select name="var" onchange="selectedVarFns()" id="var">
<option selected="selected" value="Var">Var</option>
's html methods for something like Template::Toolkit
. On the client side, a framework like jQuery
would serve you better than sprinkling onchanges throughout your HTML. But before you do that, try to get a really clear understanding of what happens server side versus what happens client side.