| Newsgroups |
php.general |
| Message-ID |
<[email protected]> |
> Ashley Sheridan <[email protected]> hat am 4. April 2013 um 13:02
> geschrieben:
>
> I've noticed the first line looks a little odd. It might be valid, just
> probably not the way I've ever done it. For my own sanity, could you try
> changing it to:
>
> if (isset($_POST['lastname']) && isset($_POST['lastname']))
>
No, this is totally valid to check if all values are set
> If multiple parameters are supplied then isset() will return TRUE only if all
> of the parameters are set. Evaluation goes from left to right and stops as
> soon as an unset variable is encountered.