PHP Query String - parameter duplicates
===

This is the code i use for creating pagination links:

    echo "<a href='".$_SERVER['PHP_SELF']."?".$_SERVER["QUERY_STRING"]."&page=$ni'><span>$ni</span></a>";

The only problem is that every time i click the link, the `'page'` parameter keeps multiplying in the URL:

> http:..php?para1=something&para2=something&para3=something&page=2&page=3&page=4

I can undestand why. Another `'page'` parameter is added to existing URL every time i click the link. 

Any ideas how to solve it?

Thanks