simple IF should be the trick.
if(empty($GET['limit']))
{
$limit = 20;
}else{
$limit = $GET['limit'];
}
your probably best using predefined limits as most users are morons that'll put thousands as the limit.
So you'll just need a simple form with a drop-down box using the GET method (so coding is a bit easier on you) but be sure you write an array of predefined limits e.g.
$limits = array("20","40","60","80");
then do a check to see if its in the array, for security.
ok if you make heads or tails of that then it should probably work.