in reply to Re: Using perl to Create a Table in a Database
in thread Using perl to Create a Table in a Database

jethro, I may be missing something but that doesn't look correct.

Just looking at the field names and the first loop iteration, he starts off with a normal assignment: my $fieldname="fieldname" .$f; so $fieldname is now "fieldname1".

His 1st HTML INPUT becomes: <input type="text" name="fieldname1" /> (after interpolating $fieldname in <input type="text" name="$fieldname" />).

In the second script, he'd do much the same so my $fieldname=param('fieldname'); would become my $fieldname=param('fieldname' . $f); (in a loop).

-- Ken