RE: [PHP] Isset Errors

2007-05-09 Thread Edward Kay


 -Original Message-
 From: Davide Bernard [mailto:[EMAIL PROTECTED]
 Sent: 09 May 2007 15:18
 To: php-general@lists.php.net
 Subject: [PHP] Isset Errors
 
 
 Anyone got any suggestions on getting rid of these errors below?
 
 
 [Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP 
 Notice:  Undefined index:  userstate in 
 /srv/www/htdocs/resetpw.php on line 31, referer: 
 https://ams.unt.edu/resetpw.php 
 [Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP 
 Notice:  Undefined index:  userstate in 
 /srv/www/htdocs/resetpw.php on line 36, referer: 
 https://ams.unt.edu/resetpw.php 
 
  
 Here's the lines of code I am getting the errors in PHP 5...Where 
 can I insert some code to define 'userstate' ?
 
 
 24. if (identifyUser()) {
 25.   if ((isset($_SESSION['clientinfo']['ssn'][0])  
 strcmp('9', $_SESSION['clientinfo']['ssn'][0]))
 26.   || isset($_SESSION['clientsinfo'])) {
 27.   $_SESSION['userstate'] = 'confirmssn';
 28.  } else {
 29.   $_SESSION['userstate'] = 'ssnverified';
 30.  }
 31. } elseif ($_SESSION['userstate'] == 'confirmssn'  confirmSSN()) {
 32.  $_SESSION['userstate'] = 'ssnverified';
 33. }
 34. initMenu();
 35. if (isset($_SESSION['userstate'])) return 0;
 36. if ($_SESSION['userstate'] == 'confirmssn') {
 37.   themeHeader();
 

If identifyUser() returns false, $_SESSION['userstate'] is not defined.

Edward

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Isset Errors

2007-05-09 Thread Richard Lynch


On Wed, May 9, 2007 9:17 am, Davide Bernard wrote:
 Anyone got any suggestions on getting rid of these errors below?


 [Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP
 Notice:  Undefined index:  userstate in /srv/www/htdocs/resetpw.php on
 line 31, referer: https://ams.unt.edu/resetpw.php
 [Wed May 09 08:59:05 2007] [error] [client 192.168.225.246] PHP
 Notice:  Undefined index:  userstate in /srv/www/htdocs/resetpw.php on
 line 36, referer: https://ams.unt.edu/resetpw.php


 Here's the lines of code I am getting the errors in PHP 5...Where can
 I insert some code to define 'userstate' ?


 24. if (identifyUser()) {
 25.   if ((isset($_SESSION['clientinfo']['ssn'][0]) 
 strcmp('9', $_SESSION['clientinfo']['ssn'][0]))
 26.   || isset($_SESSION['clientsinfo'])) {
 27.   $_SESSION['userstate'] = 'confirmssn';
 28.  } else {
 29.   $_SESSION['userstate'] = 'ssnverified';
 30.  }
 31. } elseif ($_SESSION['userstate'] == 'confirmssn'  confirmSSN())
 {

elseif (isset($_SESSION['userstate'])  $_SESSION['userstate'] ==
'confirmssn'  confirmSSN()){

 32.  $_SESSION['userstate'] = 'ssnverified';
 33. }
 34. initMenu();
 35. if (isset($_SESSION['userstate'])) return 0;
 36. if ($_SESSION['userstate'] == 'confirmssn') {
 37.   themeHeader();

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php