Hi Shashank and Rich, this is what I have and the output is the same as before? <?php echo $_SERVER['REQUEST_URI']; // Get only the part AFTER the question mark $alliwantis = stristr($REQUEST_URI, "?"); ?> the link is http://www.punterspower.co.uk/cgi-bin/whois.pl just the domain.co.uk is all I want :( I am going to see a therapist very soon! Andrew --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.374 / Virus Database: 209 - Release Date: 7/9/02