note 24886 rejected from language.operators.string by victor
| From: | victor@php.net | Date: | Wed, 04 Sep 2002 04:36:56 +0000 |
| Subject: | note 24886 rejected from language.operators.string by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-36088@lists.php.net to get a copy of this message | ||
Hi. what about this?
if(strlen($naam) < 2)
{
$errormsg = "wrong";
}
if(strlen($tekst) < 3)
{
$errormsg .= "wrong also";
}
if the length of $naam is 4 $errormsg will not be set the first time. Next is$tekst which is 45 long
so this gives true in the second if, right?
Well, i get:
Undefined variable: errormsg in c:\program files\apache
group\apache\htdocs\studie\guestbook_simple.php
What's wrong in here