If you want to know which index page number, "num", of the datafeed you are on, just use the following formula in a little CGI-script:


Here, K is the number of records per page.
For example, I use this number on my postcard page. When the users click into "Send as a Postcard", they are directed to the postcard-making page that corresponds to the current one. If the current page is "art_0001", then the card-making page is "card_making_0001.html" as well, and num=1. You can fill in the details.

Advertising may be described as the science of arresting human intelligence long enough to get money from it.
Stephen Leacock, "Garden of Folly".