http://us.php.net/intval You can use: $page_index = intval($_GET['page']); Returns 0 if it's not a valid integer. - Brian Dailey -- realm3 web applications [realm3.com] freelance consulting, application development (423) 506-0349