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;
}

?>

Recommended Answers

All 2 Replies

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.

error_reporting(0);

thank you again !:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.