Next & Previous buttons without a database?
Posted: Mon Oct 25, 2010 8:30 pm
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?
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?