or download this
my $statement2 = "select unit_name from unitNamesTable";
my $sth = $dbh->prepare($statement2);
...
print "<input type=image name='$unit_name' id=$unit_name value='$u
+nit_name' alt=airConButton src=../../images/unit.jpg height=100px wid
+th=100px onclick=this.form.submit()>";
}