By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,117 Members | 1,093 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,117 IT Pros & Developers. It's quick & easy.

Need help with errors

Sl1ver
100+
P: 196
I read some stuff on google but nothing that really could help me here is the problem

Notice: Undefined index: id in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\demo.php on line 18

Expand|Select|Wrap|Line Numbers
  1. line18: if($_SESSION['id'] && !isset($_COOKIE['tzRemember']) && !$_SESSION['rememberMe'])
  2. {
  3.     // If you are logged in, but you don't have the tzRemember cookie (browser restart)
  4.     // and you have not checked the rememberMe checkbox:
  5.  
  6.     $_SESSION = array();
  7.     session_destroy();
  8.  
  9.     // Destroy the session
  10. }
  11.  
another one

Notice: Undefined index: submit in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\demo.php on line 39

Expand|Select|Wrap|Line Numbers
  1. if($_POST['submit']=='Login')
  2.  
Oct 28 '11 #1
Share this Question
Share on Google+
1 Reply


100+
P: 1,059
make sure your index 'id' in _SESSION exists using isset function
Oct 29 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.