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 _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php