IS the 'page' parameter actually doing anything? You could just not set it in the first place. OR you could just ignore it, i.e. not have $_GET['page'] do anything. Once the 'page' has been passed to the new page, even if you remove the bit with str_replace() or similar, $_GET['page'] will still exist. You could get rid of it by unset($_GET['page']).
If you really need to get rid of the offending parameter and can't do this from the original parsing function, use str_pos() to find the start of '&page=' and str_replace() to replace all characters from that point onwards with '' OR use str_pos() and substr() to truncate from that point onwards.
Reputation Points: 1067
Solved Threads: 954
Disgraced Poster
Offline 6,727 posts
since Oct 2006