in reply to Re: lines per page
in thread lines per page

yup. (unless you get into nasty complicated threads and ports and sockets and so forth). See, the web browser will hit the cgi, get the first 20 lines, the cgi will print the first 20, do something with the next 20, then die, the browser will then hit the cgi, get the next 20.. I would suggest (like above) (ab)using the magical $. var, but use it as a query string instead of a hidden field, blah.cgi?pos=20; as this is much easier to change, and advanced users can see whatever part they want..