Ok, I noticed a couple things.

One: There's no } ending your elseif statement.

Two (and the big one): Why all the opening brackets before your isset() 
functions? I'm not sure if you're trying to do some nested logic in there, 
but if so it will be much more readable if you use nested if statements 
instead of a single huge statement.  If you quickly count you'll see that 
you've got 8 opening brackets and only 5 closing ones.  That's where your 
problem lies.

At 02:40 PM 7/25/2002 -0600, you wrote:
>I am getting a parse error on line 14, I am trying to make sure session vars
>are being set before rendering the page.  This is lines 12,13,14 & 15.  Any
>help is appreciated.
>if ((!$u_name) || (!$p_word)){
>  header("Location: index.php");
>  session_destroy();
>  exit; }
>/* Check for missing session vars */
>elseif ((!isset($HTTP_SESSION_VARS['clk']) ||
>(!isset($HTTP_SESSION_VARS['holy_cow']) ||
>(!isset($HTTP_SESSION_VARS['ipaddy']) || (!isset($HTTP_SESSION_VARS['a'])) {
>  /* Begin logging of client info to database table since session vars are
>not present */
>  require '/path/to/connection/class/db.php';
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

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

Reply via email to