Page 1 of 1

Next & Previous buttons without a database?

Posted: Mon Oct 25, 2010 8:30 pm
by puns0steel
I have a quick site I'm making with 20 sequential pages. The files are named

index.php
01.php
02.php
....etc
19.php
20.php

Do you know how I can have two images (a left and a right arrow) act as Next and Previous buttons, going from 01 to 02, and so on? It seems like an array could do it, but I'm just learning. And I'd rather not use MySql on this. It'd be great if 20 wrapped back to index.php, but it doesn't have to.

Thoughts?

Re: Next & Previous buttons without a database?

Posted: Mon Oct 25, 2010 10:37 pm
by yacahuma
so , you have 20 static pages? if that is the case, just use hard coded buttons