Well I don't know how to do it with standard html, but I believe you could use macromedia flash for it. There is a trial version over at macromedia and the help files explain more about letting flash interact with cgi's and databases.
Imagination is more important then knowledge -Einstein-
FWIW, there is Perl::Flash
if you want to use flash. Yes - you can code your flash
swf files in perl now.
--
use signature;
signature(" So long\nAlfie");