View Single Post
  #1 (permalink)  
Old May 24th, 2008, 12:25 PM
Mind Games Mind Games is offline
Authorized User
Join Date: May 2008
Location: Newcastle upon Tyne, , United Kingdom.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default $_SESSION error in login.php


I'm using the 'Beginning PHP5,Apache,And MySQL Web development' and on pages 55-56, you develop a login page for you movies site, every time I try to login I get this error message. it's supposed to load another page up, but doesn't and loads this error message. The lines in the message refer to:
$_SESSION['username'] = $_POST['user']; // line 5
$_SESSION['userpass'] = $_POST['pass']; // line 6

Welcome to my movie review site!
Today is May 24, 2008

Notice: Undefined index: user in C:\wamp\www\PHP_files\movie1.php on line 5

Notice: Undefined index: pass in C:\wamp\www\PHP_files\movie1.php on line 6
Sorry, but you don't have permission to view this page, you loser!

Thanks for any help