I ran into this serious problem while developing a site.

say i use 3 GET variables in my URL when people navigate through my site's pages : 1) section 2) postsperpage 3) page

and almost each section has multiple pages of links with page numbers to click on (PHP paging). Also , the 'section' and the 'postsperpage' variable might be both set or not. Or maybe just one of them is set.

Now how do i form the links for pages numbers according to which variables are set? For example , the same link could be :
Code:
http://.../script.php?page=1
or
Code:
http://.../script.php?section=1&page=1
or
Code:
http://.../script.php?section&=1&postsperpage=10
and so on


how shall i do it?


Thanks for your time