Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Trying to get HTML::FillnFORM to fill in my form.
Hello! I have a file (flatfile) which has two lines to it containing
all the keys on line one and all the values on line two.  I have put
this into a hash called hash. I'm trying to populate the fields of my
form with this data.  This is the original data keyed in by someone.
There are 300+ fields in the form.  Is anyone familiar with
HTML::FillinForm? I found another one called HTML::Defaultify but it's
not on my server as an installed module of perl.  This module below is
supposed to "automagically" populate the fields on my form. It's not
working.


#!/usr/bin/perl -w
use HTML::FillInForm;
open (FILE, "../temp/tempdatabase.txt") or error("Can't open file!");
my @descr =<FILE>;
close FILE;
my %hash=();
my @keys=split(/\|/,$descr[0]);
my @values=split(/\|/,$descr[1]);
@hash{@keys} = @values;
print "Content-type: text/html\n\n";
while (($k, $v) = each %hash) {print "$k=>$v,"};
$html="../form1/loanapp.htm";
$fif = new HTML::FillInForm;
$output = $fif->fill(scalarref => \$html,
hash => \%hash);


Report this thread to moderator Post Follow-up to this message
Old Post
mortgages2005@aol.com
03-25-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PERL CGI Beginners archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:56 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.