Re: Can't use function return value in write context--huh?
- From: kkruecke <kurt.krueckeberg@xxxxxxxxx>
- Date: Sat, 26 Jul 2008 14:14:22 -0700 (PDT)
Incorrect. That's what isset() tests. If $_POST['email'] is not set,
the rest of the expression is never evaluated.
The others had it correct - empty() only works on variables, not the
results of an expression.
Thanks for mentioning that "If $_POST['email'] is not set, the rest of
the expression is never evaluated." That is why I did
isset( $_POST['eamil']) first.
.
- Follow-Ups:
- Re: Can't use function return value in write context--huh?
- From: Jerry Stuckle
- Re: Can't use function return value in write context--huh?
- References:
- Can't use function return value in write context--huh?
- From: kurt . krueckeberg
- Re: Can't use function return value in write context--huh?
- From: larry
- Re: Can't use function return value in write context--huh?
- From: Jerry Stuckle
- Can't use function return value in write context--huh?
- Prev by Date: Re: CURL redirect not working even with CURLOPT_FOLLOWLOCATION set to true
- Next by Date: Re: How many hours a week do you spend working? (coding/documenting/research everything)
- Previous by thread: Re: Can't use function return value in write context--huh?
- Next by thread: Re: Can't use function return value in write context--huh?
- Index(es):