aeboi80 Posted October 26, 2009 Share Posted October 26, 2009 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 Link to comment https://forums.phpfreaks.com/topic/179018-undefined-index-notice-in-internet-explorer-only/ Share on other sites More sharing options...
trq Posted October 26, 2009 Share Posted October 26, 2009 <?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? Link to comment https://forums.phpfreaks.com/topic/179018-undefined-index-notice-in-internet-explorer-only/#findComment-944487 Share on other sites More sharing options...
aeboi80 Posted October 26, 2009 Author Share Posted October 26, 2009 Yes, the browser is set to accept all cookies. Link to comment https://forums.phpfreaks.com/topic/179018-undefined-index-notice-in-internet-explorer-only/#findComment-944498 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.