Skip to main content
Inspiring
August 4, 2011
Question

count?

  • August 4, 2011
  • 1 reply
  • 898 views

Hi,

I have 50 images and converted each into cfm page so i have total 50 cfm pages.

1. page1.cfm, click on next button, it goes to page2.cfm

2. page2.cfm, click on next button, it goes to page3.cfm and click on previous button, it goes to page1.cfm

and so on until it hits last page which is page 50.

I don't want to hard code on each page for next and previous button to jump to page2.cfm, page3,cfm ....

i set  totalpages =50 , count = 1 on the first page.  page 2 need to have n = count+1.

I've done some reading and most people said that try to avoid the Evaluate()  function because its slower.

Can anyone please help and show me whats the productive way to do it?

thanks

kt

This topic has been closed for replies.

1 reply

Owainnorth
Inspiring
August 4, 2011

I have 50 images and converted each into cfm page so i have total 50 cfm pages.

Erm, WHY?

This is exactly what URL variables are for. I'd read up on those.

kt03Author
Inspiring
August 4, 2011

there is the reason behind that i need to convert them into cfm page but my my quesiton is how's can I do on what i described.

Owainnorth
Inspiring
August 4, 2011

Well if you really insist upon it, take a look at the cgi.script_name to tell what page you're currently on. Strip out everything but the numbers, you then have the current page number in your hand.

You can then easily create links for the n+1 and n-1 as required.