Go to: Articles List

Use hidden form values to your advantage Part 2 [Part 1]

     The second way to use this to your advantage is to put information in the form that you are tracking from one page to another, or information that you have generated (like a new user id number, etc).

One way that I have used this information is in writing a reporting application. After submitting a query I needed to pass to the next page the number of the last record I displayed. This way, when the user clicked on the the next button to show the next 50 records I passed back in to the same page the last record I viewed. Then I used this value in the sql statement to get the next set of records.