Jump to content

error checking


pritam79

Recommended Posts

Well, you say you set $_SESSION['valid_user'], but then in check_valid_user() you are looking for $_SESSION['$valid_user']. In fact, since you use single quotes there it will actually look for the string index $valid_user'.

Link to comment
Share on other sites

Well, you say you set $_SESSION['valid_user'], but then in check_valid_user() you are looking for $_SESSION['$valid_user']. In fact, since you use single quotes there it will actually look for the string index $valid_user'.
The login script worked well and was directing a user to the index page. But suddenly something went wrong and the error message ‘Notice: Undefined variable: _session in C:\wamp\www\Site\login.php on line 13’ appeared. Actually when the login was OK, I was trying to display a welcome message to the user on the index page. But everything went wrong and I am not even able to login. Plz help….
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...