thanks for your reply
i want to make an redirect to another page if a string is in the referer page...i've tryed eregi() and strstr() and both times i get same error
this is the code i used:
PHP Code:
<?
if (strstr($_SERVER['HTTP_REFERER'], "amateur"))
{ header("location: [url]http://www.mydomain.com/amateur.html[/url]"); die();}
?>
and this is the error i get when i come to this page from another page which the "amateur" in the url:
"Cannot add header information - headers already sent by (output started at /home/..............) "
any ideea why i get this error?