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";
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