PDA

View Full Version : Page Index not working


mk9
12-14-2005, 10:47 AM
I have a page counter that will not work properly.

When searching for an item, the page counter shows at the bottom of the page showing how many pages there are with the result. Something like this, (Page 1 - 2 - 3). When you click on to page 2 or 3, the results dont show on the following pages although I know that there are more results to be shown. Any ideas?

TM_counter = 0
For i = 1 to rsSearchResult_total Step MM_size
TM_counter = TM_counter + 1
TM_PageEndCount = i + MM_size - 1
if TM_PageEndCount > rsSearchResult_total Then TM_PageEndCount = rsSearchResult_total
if i <> MM_offset + 1 then
Response.Write("<a href=""" & Request.ServerVariables("URL") & "?" & MM_keepMove & "offset=" & i-1 & """>")
Response.Write(TM_counter & "</a>")
else
Response.Write("" & TM_counter & "")
End if
if(TM_PageEndCount <> rsSearchResult_total) then Response.Write(" - ")
next

davidj
12-14-2005, 12:23 PM
try changing the form method form POST to GET also make sure your catching variables using the GET method on each page

mk9
12-15-2005, 06:33 AM
Hmmm

I did try that but all that happened was the search would not work. I beleive that we have set it up to use post rather than get.

Creative Insanity
12-15-2005, 07:01 AM
I would say remove all the MM_ TM_ at a quick glance. They don't seem to match up to me.

mk9
12-16-2005, 10:52 PM
Ok thanks.

I will try something different.

Mally.