0

Notice: Undefined index: HTTP_REFERER in C:\xampp\htdocs\cart\order.php on line

<?php

define('INCLUDE_CHECK',1);
require "connect.php";

if(!$_POST)
{
    if($_SERVER['HTTP_REFERER'])
    header('Location : '.$_SERVER['HTTP_REFERER']);

    exit;
}

?>
2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by mariaceline_21
0

You should disable notice.
Add below line on top of your php page.

error_reporting(0);

You can also disable warnings globally by changing in php.ini file.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.