in reply to Re: collect all numeric form params and update database
in thread collect all numeric form params and update database

That's actually very neat, however I am not using OOP on this. How would this be done without using CGI as an object?
  • Comment on Re^2: collect all numeric form params and update database

Replies are listed 'Best First'.
Re^3: collect all numeric form params and update database
by rhesa (Vicar) on Mar 06, 2006 at 01:34 UTC
    In that case, you can simply omit the $cgi->:
    foreach my $p( grep /^\d+$/, param() ) { # find the form value my $v = param( $p ); # execute the query $sth->execute( $v, $p ); }
    Note that DBI still uses OOP :)