in reply to 5 of 10?

How are you storing the data in your script? I assume you have some sort of data structure? If you're storing the data in an array, just print out a next link with a parameter like "start=5"; then in your script, just print out the array elements from the start value (5, in this case) to the limit of records per page (the limit, in your case, would seem to be 5).

If you're not storing the data in a data structure, but are instead printing out each line in a while loop as you read from the file, you can check $. for the current line number, and only print the line if the line number is between 5 and 10. Or something such. You could last out of the loop after you hit the limit.

Does this make sense? There's no magic involved, really--you just have to code it up yourself.

Also, check out Randal's WebTechniques column on this: Giving 'more'.