My initial browser-refresh problem was variable scoping and I've worked that out.

I now have another odd problem.

I have a function that reads params and creates update statements.
Up to 18 lines of 5 elements each posted from a form.

The Code is like...

MyUpdate($dbc,$query)
....
     for ($cnt=0; $cnt<18; $cnt++) {

        $id = $query->param('id'.$cnt);
        $fname = '"'.$query->param('first_name'.$cnt).'"';
        $lname = '"'.$query->param('last_name'.$cnt).'"';

   $sql = qq{UPDATE table
                        SET first_name = $fname, last_name = $lname
                   WHERE id = $id};

After about 7 times thru, param() returns NULL for last_name, first_name but the ID has a value.
I use the same logic to retrieve data and it works fine.


The same code works without mod_perl enabled.

_________________________________________________________________
Don’t worry if your Inbox will max out while you are enjoying the holidays. Get MSN Extra Storage! http://join.msn.com/?PAGE=features/es



-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to