Hi Rahia.

Try the following:

[code=php]
if (strpos($_SERVE R['HTTP_REFERER'], 'xyz.php'))
{
header('Locatio n:'.$_SERVER['HTTP_REFERER']);
}
[/code]
Here, we are searching the PHP variable ($_SERVER['HTTP_REFERER']) for an occurance of the string (xyx.php).

If this is true, then the page is directed to itself (i.e. reloaded) on this occassion ($_SERVER['HTTP_REFERER'])....