Code: Select all
if (strstr($_SERVER['HTTP_REFERER'], 'http://www.site.com/cart.asp') !== false)
{
echo "<div class='downarrowdiv' id='addtobasket'>
Added to Basket
</div>";
}[text]Notice: Undefined index: HTTP_REFERER in C:\xampp\phpMyAdmin\site\index.php on line 233[/text]
I've not had this before. It's meant to find out where the page has come from, and then show the Div on screen fora short time.