what im looking at doing;
having a login form in the bottom corner (in a table) of my site so that when a user enters their username and pass they are logged in with a session cookie and are able to access scripts/files/folders that would otherwise be protected.
BUT im having major problems because i want the login form to be half way through the html of the index.php in my site, and because im using seessions and the like it gives me the "Warning: session_start(): Cannot send session cookie - headers already sent by blah blah line in index.php"
Now how can i make my own / modify this login form so that i have username password fields on the sites main page, when if a user enters their details, they are logged in (but not navigated away from index.php - im using iframes) and are able to access files they otherwise wouldnt be able to get to.
Thanks in advance, DarkAngel the PHP n00b