Jump to content

Undefined Index Notice In Internet Explorer Only


aeboi80

Recommended Posts

I am getting the following notice:

 

Notice: Undefined index: jrox in /home/ycsn/public_html/mem/includes/html/templates/template_member_home_page.php on line 20

 

It only appears within Internet Explorer.  I have only tested it with IE 7.

 

The code which is located on line 20 is here:

  <?php

$a = explode('###', urldecode($_COOKIE['jrox']));
$affid = $a[0];

$b = $_SESSION['mulogin'];
?> 

 

Any ideas why this error would be occurring in IE only?  Besides the obvious, IE SUCKS, lol.  I am running PHP version 5.2.8 and MySQL version 5.0.67-community  PHP is running in CGI mode.

 

 

Chad

<?php

if (isset($_COOKIE['jrox'])) {
  $a = explode('###', urldecode($_COOKIE['jrox']));
  $affid = $a[0];
  $b = $_SESSION['mulogin'];
}

?>

 

Any ideas why this error would be occurring in IE only?  Besides the obvious, IE SUCKS, lol.  I am running PHP version 5.2.8 and MySQL version 5.0.67-community  PHP is running in CGI mode.

 

PHP executes long before it ever gets to any browser so browser type has absolutely no effect on php. However, are you sure cookies are enabled in this browser you are testing in?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.