you need to check if the variables posted are filled with either empty() or ! ..
something like this :
this is a method, but there is another one .. Blaw's one
as for the second question..
you can do this with LIMIT in mysql_query() ..
example:
this LIMIT will start fetching 10 records from record number zero!
how can you tell the LIMIT to fetch the next 10 in php?! use a GET var in your url .. something like this:
the url should look like this :
page.php?startrow=NUMBER_HERE