in reply to cgi form and javascript
If you change those print "<html here>"; to print qq(<html here>); (or q() see perlop), I bet it will work. Other then that we'll need a better description of the problems your having with it.
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce
In Section
Seekers of Perl Wisdom