Possible Duplicate:
PHP: “Notice: Undefined variable” and “Notice: Undefined index”
Okay, so I am trying to build my site and I am having a minor issue. I am getting errors like "Undefined index: id in C:\xampp\htdocs\index.php on line 18" and "Undefined index: submit in C:\xampp\htdocs\index.php on line 39"
I am certain it's a matter of syntax but I can't seem to find the right answer. Here is the php code in my index.php file on lines 16-18
session_start();
if($_SESSION['id'] && !isset($_COOKIE['logRemember']) && !$_SESSION['rememberMe'])
The code worked before when I was running Apache 2 in linux. Now I am running Xampp on windows and all of a sudden it doesn't want to work right.
Whoever answers this, please write it in stupid. I'm still learning php. :) Thanks!