Hi all I hope someone out there can help me as I havent a clue how to proceed.
I am following a shopping basket tutorial and have managed to customise it into my site but after I have gone through the 1st stage of the checkout and click the submit and select the payment method 'paypal' to process the customer details I am presented with the following message:
'Notice: Undefined index: HTTP_REFERER in C:\Documents and Settings\ben\Desktop\Bens Briefcase\PHPTesting\whitedisc.com\TEST\whitedisc\include\checkoutConfirmation.php on line 9.
The php code for this page is as follows:
if (!defined('WEB_ROOT')
|| !isset($GET['step']) || (int)$GET['step'] != 2
|| $SERVER['HTTP_REFERER'] != 'http://' . $SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . '?step=1') {
exit;
}
I am runniing all the testing and implementing on my localhost before I upload to a live server. Can anyone assist me on this problem??
Thanks in advance!