Ok, so I currently have this http://pastebin.com/cCgyavs0 snippet that generates links to the previous, next and last page based on the current page (GET variable) or the total item count in the MySQL DB to then use forms as links by inserting the URLs into the action attribute. I did this cause I don't wanna use images as links, btw
It kinda works - I get links like:
shop.php?page=1
shop.php?page=12
shop.php?page=14
shop.php?page=225
When I'm on page 13 of 225 for example.
Though when I click one of the buttons, I always get redirected to "shop.php?".
:/