iammikey101 Posted November 11, 2008 Share Posted November 11, 2008 I get several errors on my page now that I upgraded to PHP 5.x. It says "86 PHP Notice: Undefined index: tmp_form " The code on line 86 is <td class="error_msg"> <?php print($_SESSION['tmp_form']['error']); ?></td> How do I fix this? Quote Link to comment https://forums.phpfreaks.com/topic/132311-undefined-index-error-with-php-5x/ Share on other sites More sharing options...
sasa Posted November 11, 2008 Share Posted November 11, 2008 <?php print($_SESSION['tmp_form']['error']); ?> change to <?php print(isset($_SESSION['tmp_form']['error']) ? $_SESSION['tmp_form']['error']) : ""; ?> btw. it isn't error it's notice Quote Link to comment https://forums.phpfreaks.com/topic/132311-undefined-index-error-with-php-5x/#findComment-687882 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.