Post data are strings, so convert to an integer before attempting to inc/decrement:
$page = intval($_POST['page'], 10);
but you should use an is_numeric() test first.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity
." Me Myself & Irene
Validate your HTML