On Thu, August 9, 2007 1:24 am, Phil Curry wrote: $userValues = ' 1'; > line 102 echo ($userValues['afterDark']); // outputs 1 > > line 103 if ( $userValues['afterDark'] == 0 ) { // passes When using echo to display debug output ALWAYS surround the data with some kind of delimiter: echo "'", ($userValues['afterDark']), "'"; Or, use var_dump or print_r to have PHP do this for you. -- 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