<?php
if (eregi('sayfa.php?renk=siyah', $_SERVER["REQUEST_URI"]))
{ echo "url buysa bunu yazdır \n"; } ?>
Bu yeterli fazla koda gerek yok.