<?php // Check if username session is set or not //if it is set then say Hi with the username //If it is not then display login/Register if (!isset($_SESSION['user'])) { echo "$lgrreg"; }else{ echo "Hi $username! "; } $lgout = '<a href="logout.php">Logout?</a>'; $lgrreg = '<a href="membersys.php"> Login/Register </a>'; ?>
Line 26: $lgrreg = '<a href="membersys.php">
Notice: Undefined variable: lgrreg in C:\xampp\htdocs\index.php on line 26
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)