Form problem
| From: | Dana Holt | Date: | Tue, 16 Oct 2001 19:01:40 +0000 |
| Subject: | Form problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-71252@lists.php.net to get a copy of this message | ||
Thanks for the idea, don't know why I didn't think of printing the value.
;-)
Yes, it is already set on my client's server, upon echoing the value is
$USERNAME it is "root"
Why would this be registered in my session? I always use "$ses_xxx" for my
session variables to prevent this very problem.
Dana
<my original code snipped>
Hi,
Could you please give details on what the problem is? Does it always return
TRUE, or FALSE ? If it always return TRUE, you can print it to see what it
is. I experienced almost the same problem one week before, and finaly found
that there's a session variable of the same name as the one checked in if().
As for variable checking, sometimes I just use the C style: if( $var ), and
this also work perfect.
Alex