Re: OO email-class
- From: Janwillem Borleffs <jw@xxxxxxxxxxxxx>
- Date: Thu, 29 Sep 2005 16:13:34 +0200
Siv Hansen wrote:
My code is like this: - from the email class function checkInput($input){ if(array_search('', $input)){ $this->setError("All the fields must be filled out"); return false; } return true; }
This will only work when empty elements have an index > 0. What you will need to do is to use strict comparison:
if (false !== array_search('', $input)){
...
}
JW
.
- References:
- OO email-class
- From: Siv Hansen
- OO email-class
- Prev by Date: Multilanguage website
- Next by Date: Pass values through a PHP form emailer
- Previous by thread: Re: OO email-class
- Next by thread: affiche d'une nouvelle page .php ou .html sans l'entete
- Index(es):