RE: [PHP-DB] session confusion| can anyone help?

2005-08-26 Thread Bastien Koert
try defining the values as empty strings first... ?php // accesscontrol.php include_once 'common.php'; include_once 'db.php'; session_start(); $suid = ''; $spwd = ''; $suid = isset($_POST['suid']) ? $_POST['suid'] : $_SESSION['suid']; //line 7 $spwd = isset($_POST['spwd']) ? $_POST['spwd'] :

Re: [PHP-DB] session confusion| can anyone help?

2005-08-25 Thread RaJeSh VeNkAtA
session_start() should be given at the starting of the file before others u can include anthing after the session_satrt() functon only On Fri, 26 Aug 2005, bo wrote: here is the code for accesscontrol.php which control the access to protected page, the server gives an error as of Notice: