$_SERVER['REQUEST_URI'] should include the query string as well. Cheers Rich -----Original Message----- From: thelist-admin at lists.evolt.org [mailto:thelist-admin at lists.evolt.org]On Behalf Of Dunstan Orchard Sent: 17 September 2002 11:09 To: evolt list Subject: [thelist] I need more than $PHP_SELF Hi there, how can I grab an entire url like this: http://www.1976design.com/testarea/photo/thumbnails.php? resultpage=1&search=nature and then add another statment onto the end of it? Basically I need to add 'large=large' to the end of my url regardless of whatever variables might or might not have been set already. I was thinking of doing something like: <a href="<? echo "$PHP_SELF"; ?>?large=large" title="View a larger version of the images">large images</a> But $PHP_SELF only grabs the bit up to the question mark. Can anyone offer any advice? Thanks again - dunstan --------------------------- Dorset, England http://www.1976design.com/ http://www.orchard.it/ http://www.maccaws.org/ -- For unsubscribe and other options, including the Tip Harvester and archive of thelist go to: http://lists.evolt.org Workers of the Web, evolt !