New Posts  All Forums:Forum Nav:

PHP Question

post #1 of 4
Thread Starter 
Notice: Undefined index: login in ---------------------- on line 25

line 25if ($_SESSION["login"] == 0)

I can't define the $_SESSION["login"] as 0 or null because it will screw my if statements up. what can i do to solve the problem?
post #2 of 4
If (!isset($_SESSION['login']))
{
echo 'not logged in':
}
else {
echo 'logged in';
}

Sorry formatting using phone
    
CPUCPUMotherboardGraphics
Intel E5-2670 Intel E5-2670 ASUS P9ZE-D8 MSI 980 TI 
RAMHard DriveCoolingOS
64GB 2x 1TB Samsung 950 Pro Noctua NH-U9DX Windows 10 
MonitorPowerCase
2x Dell P2815Q Corsair AX1200i 900D 
  hide details  
Reply
    
CPUCPUMotherboardGraphics
Intel E5-2670 Intel E5-2670 ASUS P9ZE-D8 MSI 980 TI 
RAMHard DriveCoolingOS
64GB 2x 1TB Samsung 950 Pro Noctua NH-U9DX Windows 10 
MonitorPowerCase
2x Dell P2815Q Corsair AX1200i 900D 
  hide details  
Reply
post #3 of 4
Thread Starter 
It worked thanks!
post #4 of 4
If you need anything else just PM but I'm off to bed now 2AM here .
    
CPUCPUMotherboardGraphics
Intel E5-2670 Intel E5-2670 ASUS P9ZE-D8 MSI 980 TI 
RAMHard DriveCoolingOS
64GB 2x 1TB Samsung 950 Pro Noctua NH-U9DX Windows 10 
MonitorPowerCase
2x Dell P2815Q Corsair AX1200i 900D 
  hide details  
Reply
    
CPUCPUMotherboardGraphics
Intel E5-2670 Intel E5-2670 ASUS P9ZE-D8 MSI 980 TI 
RAMHard DriveCoolingOS
64GB 2x 1TB Samsung 950 Pro Noctua NH-U9DX Windows 10 
MonitorPowerCase
2x Dell P2815Q Corsair AX1200i 900D 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding