> page that $password is posted to, if I test isset($password) after a
submit, it always evaluates to true, regardless of whether or not
anything was entered into the textbox... echoing the value simply echoes
its contents, which is an empty string. If I test for simply
if($password), however, that does evaluate to false. This doesn't work
Usually what I do when testing things like this is to first check if the
variable exists, and then check its value. This way you don't get the error
if you are trying to test the value of something which doesn't exist, but if
it does exist you are still checking its value as you usually would. ie:
if(isset(x))
{
if(x!=0 && x!=NULL && x!= '')
{
<password is set - test password value>
}
else <blank password>
}
else <no password>
David