http://qs321.pair.com?node_id=229090

peacemaker1820 has asked for the wisdom of the Perl Monks concerning the following question:

I would like to populate my form with some predefined values in perl file. I am trying to use HTML::FillInForm, but the page returns a blank page to me. I DO have the HTML page that I am trying to populate, and for testing purposes I put it into the same directory where my perl file is.
Can anyone help with any ideas that would make this thing work? Because if it will, I will have to pre-populate a form that I have with about 40 fields.
Thanks a lot brothers. Here is the code so far...

print "HTTP/1.0 200 OK\n"; print "Content-Type: text/html\n\n"; use warnings; use CGI; use HTML::FillInForm; my $q = new CGI; my $fif = new HTML::FillInForm; #name of the form to populate #(in the same directory for testing purposes) my $html = "name1.htm"; #Fill in the necessary parameters... $q->param("name" , "Ted Burns"); my $output = $fif->fill(scalarref => \$html, fobject=>$q); #print the form with values in the fields print $output; ####### END