Hi,
I have a little problem with PrevNextForm in DBIx::Recordset.
When I run the code below the table is displayed as I want with the
number of rows I specified in $max. But when I press 'Next' the SAME
page
comes up. It's impossible to see further than the $max rows.
I also attach the some of the HTML output.
Marcus
______________________
#!/usr/bin/perl -w
$|++;
#use strict;
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
use CGI::Pretty;
use DBI;
use DBIx::Recordset;
....
print start_html();
print start_form();
....
*set = DBIx::Recordset->Search({%fdat,
('!DataSource' =>
"dbi:Pg:dbname=$database",
'!Table' => $tab,
'$fields' => $joined_kol,
'$where' => $query,
'$max' => 5)});
....
print <TABLE>
.....
print </TABLE>
print end_form();
print start_form();
print end_form();
print $set -> PrevNextForm ("Previous", "Next", \%fdat);
print end_html;
____________________________
The last HTML output is:
.....
</TABLE></form><form method="POST"><input type="hidden" name="$start"
value="0">
<input type="hidden" name="$max" value="5">
<input type="submit" name="$next" value="Next"> </form></body></html>