ErrorException [ Notice ]: Undefined index: HTTP_REFERER

APPPATH/views/site/contactus/contactus.php [ 559 ]

554 					 if(result.httpcode == 400){
555 						 $.each(result['error'],function(key,value){
556 							 $('#contactus_submit').find('.'+key).html(value);
557 						 });
558 					 } else if(result.httpcode == 405) {
559 						 window.location.href = "<?php echo $_SERVER['HTTP_REFERER']; ?>";
560 					 } else {
561                          window.location.href = 'thank-you.html';
562                      }
563 				 },
564 				 });
  1. APPPATH/views/site/contactus/contactus.php [ 559 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  3. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  4. SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()

  5. APPPATH/views/site/template/main.php [ 122 ] » Kohana_View->__toString()

  6. SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)

  7. SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)

  8. SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()

  9. APPPATH/classes/Controller/Template/Website.php [ 126 ] » Kohana_Controller_Template->after()

  10. SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Template_Website->after()

  11. {PHP internal call} » Kohana_Controller->execute()

  12. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)