tak zdefiniowałem działanie klawiszy "next, last itd":
<?php case "first": $_SESSION['pointer']=0; break; case "next": if($_SESSION['pointer']<$_SESSION['lenght']-1) {$_SESSION['pointer']++;} else{$_SESSION['pointer']=0;} break; ?>
a tak zrobiłem diplay:
<?php include_once('function.inc'); displayStyles('Przeglądanie danych studenta'); { $edit=$_SESSION['pointer']; $_SESSION['pointer']=0; $_SESSION['lenght']=$len1; } $ptr=$_SESSION['pointer']; for($i=0;$i<$len1;$i++) startForm('control.php'); displayForm($label,$data[$ptr],false); buttonBarDisplay(); endForm(); ?>