On Mon, March 26, 2007 10:17 am, Ross wrote:
> I want to trim any whitepace and check if it is empty in the same
> line this
> is not working.
>
> if (empty(trim($_POST['_createcategory']))) {

Define "not working" if you would...

Personally, I always use isset() to determine if any POST data was
sent, and then deal with what was sent, perhaps doing trim, and always
scrubbing and validating the data.

empty() changed its behaviour on "0" from version to version.

-- 
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

Reply via email to